2079 1

Object Oriented Programming207910 marksAggregation

What is aggregation? Write a program for implementing following: Create a class author with attributes name and qualification. Also create a class publication with name. Form these classes to derive a class book having attribute title and price. Each of three classes should have a getdata() method t

What is aggregation? Write a program for implementing following: Create a class author with attributes name and qualification. Also create a class publication with name. Form these classes to derive a class book having attribute title and price. Each of three classes should have a getdata() method to get their data from user. The classes should have putdata() method to display the data. Create instances of the class book in main.[10]

Aggregation is a special form of association in Object-Oriented Programming where one class contains objects of other classes as its members, but the contained objects can exist independently of the container class. It represents a "has-a" relationship between classes. - In aggregation, the conta...

Up nextWhat is the use of constructor and destructor? Write a program for illustrating default co