[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-423010-105":59,"doc-detail-423010-en":130,"doc-similar-423010":166},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","the-vocabulary-of-oop-slide-4","The Vocabulary of OOP - Slide 4","","Lecture-style content explains core vocabulary of object-oriented programming in Java. It defines classes as templates for objects, shows how to create instances using the new keyword, and clarifies that everything in Java is organized into classes. It introduces encapsulation as combining data and behaviour while hiding implementation, then covers inheritance as extending base classes with inherited and specialized members. It further contrasts OO versus traditional programming and describes object identity, state, behaviour, and class relationships such as use and containment.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/the-vocabulary-of-oop-slide-4/423010/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/the-vocabulary-of-oop-slide-4/423010.png","ImageObject",300,407,{"name":92,"@type":93},"Fans","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-12-01","2026-09-28",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is a class in OOP, and how is an instance created in Java?","Question",{"text":112,"@type":113},"A class is the template from which an object is actually made. An instance is created using the new keyword, e.g., new Car().","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What does encapsulation mean in OOP?",{"text":117,"@type":113},"Encapsulation combines data and behaviour into one black box and hides the implementation details from the user of the object.",{"name":119,"@type":110,"acceptedAnswer":120},"How does object-oriented programming differ from traditional structured programming?",{"text":121,"@type":113},"Traditional programming puts algorithms first and data structures second, while OO programming puts data structures first and algorithms second.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},423010,1791310464,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":24,"preview_urls":146},5909892330395,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","The Vocabulary of OOP  \n• The most important term is class. A class is the template from which the object is actually made.  \n• To create an object you use the new keyword. It allocates memory and the built-in garbage collector will release memory when nobody uses the object anymore.  \n• When you create an object from a class , you are said to have created an instance of the class.  \nCar mazda626 = new Car();  \ncreates a new instance of the Car class.  \n• Everything you write in Java is inside a class.  \n• Java is composed of many classes.  \nThe Vocabulary of OOP : Encapsulation  \n• Encapsulation is another key concept of OOP. It means  \n– combining of data and behaviour in one black box  \n– and hiding the implementation of the data from the user of the object  \n• The data in an object are called instance variables or fields.  \n• Functions and procedures in a Java class are called its methods.  \nFigure: Encapsulation of data in an object  \ninstance variables: oil, petrol (typically hidden from outside if declaired private) methods: accelerate, brake (typically visible from outside if declaired public)  \nEncapsulation is the way to give the object its “black box” behaviour  \nThe Vocabulary of OOP:  \nInheritance  \n• Classes can be built on other classes. We say that a class that builts on another class extends it.  \n• The general concept of extending a base class is called inheritance.  \n• When you extend a base class, the new class initially has all the properties and functions of its parent. You can choose whether you want to modify any function of the parent. You can also supply new functions that apply to the child class only. The same holds for the instance fields, too.  \nparent child  \n\n| Class Car |\n| --- |\n| Method A |\n| Method B |\n| Method C |\n\n| Class Ford |\n| --- |\n| Method A |\n| Method B |\n| Method C’ |\n| Method D |\n\n inherit  \n modify  add  \n• In Java, all classes extend the “cosmic base class” called Object.  \nObjects  \n• To work with OOP, you should identify 3 key characteristics of objects:  \n1. What is the object’s behaviour? Æ methods  \n2. What is the object’s state? Æ instance fields  \n3. What is the object’s identity?  \n• 1. All objects that are instances ofthe same class share a family resemblance by supporting similar behaviour. The behaviour of an object is defined by the methods of its class.  \n• 2. Each object stores information, called state, about what it currently looks like. The state of an object is represented by the value of its instance fields. A change in the state of an object must be the consequence of calling a method of the object.  \n• 3. Each object has a distinct identity. The individual objects that are instances of a class always differ in their identity and usually differ in their state.  \nClass: Car  \nObject 1: mazda626  \nObject 2: opel_corsa  \n| Method A |\n| --- |\n| Method B |\n| Method C |\n| State 1 |\n\n\n| Method A |\n| --- |\n| Method B |\n| Method C |\n| State |\n\n| Method A |\n| --- |\n| Method B |\n| Method C |\n| State 2 |\n\nRelationship between classes  \n• The most common relationships between classes are:  \n1. use  \n2. containment (“has-a”)  \n3. inheritance (“is-a”)  \n• 1. A class uses another class if it manipulates objects of that class. In general, a class A uses a class B if:  \na/ a method of A sends a message to an object of class B, or  \nb/ a method of A creates, receives, or returns objects of class B.  \n• 2. Containment means that objects of class A contain objects of class B. (Containment is a special case of use; if an A object contains a B object, then at least one method of class A will make use of that object of class B.  \n• The inheritance relationship denotes specialization. If class A extends class B, class A inherits methods from class B, but has more capabilities.  \n• Class diagrams show the classes and their relationships.  \nTraditional versus OO  \nprogramming  \n• In traditional structured programming  \nalgorithms come first  \ndata structures come second.  \nFirst, you d","cbCaigx9JX4qRYQF","https://ap.wps.com/l/cbCaigx9JX4qRYQF","pdf",383850,43,"English","# The Vocabulary of OOP\n## Encapsulation\n## Inheritance\n## Objects and their characteristics\n## Relationship between classes\n## Traditional versus OO programming\n## Object Variables","[{\"question\":\"What is a class in OOP, and how is an instance created in Java?\",\"answer\":\"A class is the template from which an object is actually made. An instance is created using the new keyword, e.g., new Car().\"},{\"question\":\"What does encapsulation mean in OOP?\",\"answer\":\"Encapsulation combines data and behaviour into one black box and hides the implementation details from the user of the object.\"},{\"question\":\"How does object-oriented programming differ from traditional structured programming?\",\"answer\":\"Traditional programming puts algorithms first and data structures second, while OO programming puts data structures first and algorithms second.\"}]","The Vocabulary of OOP - Slide 4 | PDF",1790629742,108,[147,151,155,159,163],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5ffa23b57768c71f8fdec39a768fd68c.webp",983,736,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/8184e6e9bdbfca1d6c0cb022ac6c60f4.webp",982,735,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d50430b070352b6adfb13a2f239bd3ce.webp",981,734,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d6c6776513d7856ebfea46674bb9058f.webp",980,733,{"page_no":24,"url":164,"width":165,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9d7ac6b84aedf70feeeac876cac90eb5.webp",979,{"list":167,"token":66},[168,174,181,187,193,200,206,212,219,225],{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":34,"category_name":30,"create_tm":173},655754,"UML - Class Diagram Basics - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288726/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=6mFq79wa1PezeJaJDE42ENYWhrE%3D","uml-class-diagram-basics-overview",1792963562,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":179,"category_name":30,"create_tm":180},347076,"Core Java - Volume 1 - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910997667/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=B7RII0t6SPiLWJ57ekjSAV2Qvoc%3D","core-java-volume-1-twelfth-edition",31,1790065168,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":29,"category_name":30,"create_tm":186},670910,"Fourth AP Edition - Object-Oriented Programming and Data Structures - Preface xiii","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988353200/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=SfvN4nSKZOusPx2gad93XkCdU9M%3D","fourth-ap-edition-object-oriented-programming-and-data-structures-preface-xiii",1793572671,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":46,"category_name":30,"create_tm":192},347081,"Java - Programming - Ninth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910997878/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=gqXC7TbY5uYowoMZNh%2FWptXYfjg%3D","java-programming-ninth-edition",1790065180,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":30,"create_tm":199},347824,"Oracle AI Database - Java Developer's Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911045076/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=uvhozxQZYTEzjP%2F6Jw1UzXFDamY%3D","oracle-ai-database-java-developers-guide",23,1790069256,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":52,"category_name":30,"create_tm":205},655639,"Software Development with UML - Classes & Instances","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286506/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=hSKw7WfHV8L%2BZtafy7gDPLWtrbg%3D","software-development-with-uml-classes-instances",1792962983,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":29,"category_name":30,"create_tm":211},655757,"Library Management System - Java OOP Case Study","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776558/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=QG94t6HOyrlM7TcWdpzwd0ao7Dc%3D","library-management-system-java-oop-case-study",1792963616,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":30,"create_tm":218},718169,"Core-java-material","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230018614171/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=jRigiyfxdmYoVRiOdCqxpmYvFG4%3D","core-java-material",15,1794855126,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":44,"category_name":30,"create_tm":224},655770,"Chapter 6 - UML Class and Object Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975289123/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=Kn3NjTRhHkd7iB%2FIYuffwSPpLhM%3D","chapter-6-uml-class-and-object-diagrams",1792963661,{"doc_id":226,"doc_title":227,"file_type":137,"home_preview_img_url":228,"slug":229,"view_count":39,"category_name":30,"create_tm":230},656256,"Object-Oriented Modeling and Design - Chapter 1 - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975303738/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796211539&Signature=ZASPzRivYBskCj%2BWHIpCbDz9mn0%3D","object-oriented-modeling-and-design-chapter-1-introduction",1792967238]