How Do you Code Composition and Aggregation in C++ ?
Answer Posted / mohan rathod
Perfect Answer.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
explain sub-type and sub class? atleast u have differ it into 4 points?
Why do we use polymorphism?
What is encapsulation with example?
What does enum stand for?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is encapsulation in simple terms?
How Do you Code Composition and Aggregation in C++ ?
What is polymorphism in oop example?
What are the benefits of oop?
What is abstraction oop?
Which is not an object oriented programming language?
What exactly is polymorphism?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?