Computer Science, asked by avesss, 1 day ago

what is constructor? how user can declared constructor in derived class? explain with example. (cpp)​

Answers

Answered by mahalaxmistp2021
0

Answer:

a special type of subroutine called to create an object.

The constructor of derived class receives the entire list of values as its arguments and passes them on to the base constructors in the order in which they are declared in the derived class. Derived constructor declaration contains two parts separated with colon (:).

Similar questions