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 the main feature of oop?
what is different between oops and c++
What is the significance of classes in oop?
Is enum a class?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is encapsulation with real life example?
#include
Which type does string inherit from?
How do you answer polymorphism?
What is abstraction oop?
Explain the advantages of inheritance.
What is class in oop with example?
What is polymorphism used for?
When not to use object oriented programming?
What is overriding in oops?