[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655639-105":59,"doc-detail-655639-en":130},{"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","software-development-with-uml-classes-instances","Software Development with UML - Classes & Instances","","Software Development with UML explains core object-oriented modeling concepts through the lens of classes and instances. It defines a class as a blueprint for static attributes and dynamic behaviors, then describes instances as realizations with actual values. The material covers class structure elements such as class name, data members, and member functions, including encapsulation. It also demonstrates how to create instances and introduces UML usage, diagram types, and core conventions.",{"@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/software-development-with-uml-classes-instances/655639/",{"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/software-development-with-uml-classes-instances/655639.png","ImageObject",300,407,{"name":92,"@type":93},"\tCallum ","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-30","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the difference between a class and an instance in UML and OOP?","Question",{"text":112,"@type":113},"A class defines the blueprint with static attributes and dynamic behaviors shared by objects. An instance is a realization of a specific item of that class with actual values.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are the main parts of a class as described in the document?",{"text":117,"@type":113},"A class consists of a classname (identifier), data members/variables (static attributes), and member functions/methods (dynamic operations).",{"name":119,"@type":110,"acceptedAnswer":120},"Which UML diagram conventions are highlighted for classes, instances, and relationships?",{"text":121,"@type":113},"Rectangles represent classes, instances, or states; ovals represent functions or use cases. Instances are denoted with underlined names, and diagrams use nodes for entities and arcs for relationships.","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},655639,1793051440,{"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":24,"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},137451211410,"https://ap-avatar.wpscdn.com/avatar/2000bb0a9246f588df?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786362646172706240","Software Development with UML  \nSoftware Development for Robotics and Automation Engineering  \nClasses & Instances  \n• Class: A class is a definition of objects of the same kind. In other words, a class is a blueprint, template, or prototype that defines and describes the static attributes and dynamic behaviors common to all objects of the same kind.  \n• Instance / Object: An instance is a realization of a particular item of a class. In other words, an instance is a copy of the class with actual values. All the instances of a class have similar properties, as described in the class definition. It represents an identifiable entity in the real world. For example, you can define a class called \"Student\" and create three instances of the class \"Student\"for \"Peter\", \"Paul\" and \"Pauline\".  \n• The term \"object\" usually refers to instance. But it is often used quite loosely, which may refer to a class or an instance.  \n[https://www.ntu.edu.sg/home/ehchua/programming/cpp/cp3_OOP.html](https://www.ntu.edu.sg/home/ehchua/programming/cpp/cp3_OOP.html)  \nClass  \n1. Classname (or identifier): identifies the class.  \n2. Data Members or Variables (or attributes, states, fields): contains the static attributes of the class.  \n3. Member Functions (or methods, behaviors, operations): contains the dynamic operations of the class.  \nIn other words, a class encapsulates the static attributes (data) and dynamic behaviors (operations that operate on the data) in a box.  \nClass Members: The data members and member functions are collectively called class members.  \n[https://www.ntu.edu.sg/home/ehchua/programming/cpp/cp3_OOP.html](https://www.ntu.edu.sg/home/ehchua/programming/cpp/cp3_OOP.html)  \nClass Definition  \nclass Circle { private:  \ndouble radius; string color;  \n// classname  \n// Data members (variables)  \nC++  \npublic:  \nCircle(float radius, int color) ;  \ndouble getRadius();// Member functions double getArea();  \n}  \nimport  \nmath  \nPython  \nclass Circle:  \n\\# class attribute  \ncount = 0  \n\\# initializer / instance attributes  \ndef   init  (self, radius=0, color=None): self.radius = radius  \nself.color = color  \nCircle.count += 1  \n\\# instance method  \ndef getRadius (self):  \nreturn self.radius  \n\\# instance method  \ndef getArea (self):  \nreturn math.pi*self.radius*self.radius  \n[https://www.ntu.edu.sg/home/ehchua/programming/cpp/cp3_OOP.html](https://www.ntu.edu.sg/home/ehchua/programming/cpp/cp3_OOP.html)  \nCreating Instances of a Class  \nTo create an instance of a class, you have to:  \n1. Declare an instance identifier (name) of a particular class.  \n2. Invoke a constructor to construct the instance (i.e., allocate storage for the instance and initialize the variables) .  \n\\# Construct 3 instances of the class Circle: c1 , c2 , and c3  \nc1 = Circle(4 , \"red\") c2 = Circle(3 .4)  \nc3 = Circle()  \n\\# radius, color  \n\\# radius, default color  \n\\# default radius and color  \n[https://www.ntu.edu.sg/home/ehchua/programming/cpp/cp3_OOP.html](https://www.ntu.edu.sg/home/ehchua/programming/cpp/cp3_OOP.html)  \nUML : Unified Modeling Language  \n• UML is used in object oriented software engineering. Although typically used in software engineering it is a rich language that can be used to model an application structures, behavior and even business processes.  \n• There are 14 UML diagram types to help you model these behavior.  \nClass Diagram  \nComponent Diagram Deployment Diagram Object Diagram Package Diagram Profile Diagram  \nComposite Structure Diagram  \nUse Case Diagram  \nActivity Diagram  \nState Machine Diagram  \nSequence Diagram  \nCommunication Diagram Interaction Overview Diagram Timing Diagram  \nTypes of UML diagram  \n• Structure diagrams show the things in a system being modeled. In a more technical term, they show different objects in a system.  \n• Behavioral diagrams shows what should happen in a system. They describe how the objects interact with each other to create a functioning system.  \n[http://creately.com/blog/diagrams/uml-diagram-ty](","cbCaipNMuBWO5P0o","https://ap.wps.com/l/cbCaipNMuBWO5P0o","pdf",1028336,38,"English","# Classes & Instances\n## Class definition and encapsulation\n## Class members: data members and member functions\n## Creating instances of a class\n# UML overview and diagram types\n## UML core conventions\n## Class diagram basics","[{\"question\":\"What is the difference between a class and an instance in UML and OOP?\",\"answer\":\"A class defines the blueprint with static attributes and dynamic behaviors shared by objects. An instance is a realization of a specific item of that class with actual values.\"},{\"question\":\"What are the main parts of a class as described in the document?\",\"answer\":\"A class consists of a classname (identifier), data members/variables (static attributes), and member functions/methods (dynamic operations).\"},{\"question\":\"Which UML diagram conventions are highlighted for classes, instances, and relationships?\",\"answer\":\"Rectangles represent classes, instances, or states; ovals represent functions or use cases. Instances are denoted with underlined names, and diagrams use nodes for entities and arcs for relationships.\"}]","Software Development with UML - Classes & Instances | PDF",1792962983,96]