Answer Posted / preeti
Constructor execution is depend on its type like,
1) inbuilt or default construtor, no parameter constructor
are executes whenever object creates.
2) parameterized constructor execute whenever it calls.
3) base class constructor execute before than child class
constructor(child class is derived from base class
constructor).
Is This Answer Correct ? | 21 Yes | 1 No |
Post New Answer View All Answers
What is class encapsulation?
What is a null tree?
#include
Get me a number puzzle game-program
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Why do we use class in oops?
any one please tell me the purpose of operator overloading
What is cohesion in oop?
What is polymorphism programming?
What is oops with example?
What do you mean by abstraction?
What is the benefit of oop?
Is oop better than procedural?
What is object in oop with example?