2080 1

Object Oriented Programming208010 marksTypes of inheritance

State the use of new operator. An educational institute wishes to maintain a data of its employee. The hierarchical relationships of related classes are as follows. Define all the classes to represent above hierarchy and define functions to retrieve individual information as and when required.

State the use of new operator. An educational institute wishes to maintain a data of its employee. The hierarchical relationships of related classes are as follows. Define all the classes to represent above hierarchy and define functions to retrieve individual information as and when required.[10]

The new operator in C++ is used for dynamic memory allocation. It allocates memory at runtime from the heap (free store) and returns a pointer to the beginning of the allocated memory block. Key uses: - Allocates memory for a variable or object during program execution - Returns a pointer to the ...

Up nextWhat is constructor? Why constructor is needed in a class? Illustrate the types of constru