Here, the distinguishing features of groups of objects are used to form specialized classes from existing classes. It can be said that the subclasses are the specialized versions of the super-class. A link represents a connection through which an object collaborates with other objects. Through a link, one object may invoke the methods or navigate through another object. A link depicts the relationship between two or more objects.
Association is a group of links having common structure and common behavior. Association depicts the relationship between objects of one or more classes. A link can be defined as an instance of an association. Degree of an association denotes the number of classes involved in a connection.
Degree may be unary, binary, or ternary. Cardinality of a binary association denotes the number of instances participating in an association. Aggregation or composition is a relationship among classes by which a class can be made up of any combination of objects of other classes. It allows objects to be placed directly within the body of other classes. An aggregate object is an object that is composed of one or more other objects. Now that we have gone through the core concepts pertaining to object orientation, it would be worthwhile to note the advantages that this model has to offer.
It is easy to maintain. Suppose a module develops an error, then a programmer can fix that particular module, while the other parts of the software are still up and running. Harshit Srivastava. DigiFisk Programming Is Fun. Sandip Bhattacharya. Pranjal Srivastava. Frahaan Hussain. Abhilash Nelson. Previous Page. DeFi systems remove the middleman financial services View Full Term.
By clicking sign up, you agree to receive emails from Techopedia and agree to our Terms of Use and Privacy Policy. By: Brad Rudisail Contributor. By: Kaushik Pal Contributor. By: Leah Zitter Contributor. Dictionary Dictionary Term of the Day. Decentralized Finance. Techopedia Terms. Connect with us. Sign up. Skip to content. Change Language. Related Articles. Table of Contents. Write an Article. Interview Preparation.
Practice Geeksforgeeks. Data Structures.
0コメント