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 are the important components of cohesion?
What is the difference between encapsulation and polymorphism?
Why do we use class?
What is destructor in oop?
What is encapsulation c#?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What are the benefits of oop?
What are benefits of oop?
Why do we use inheritance?
What is inheritance in oop?
What is the example of polymorphism?
What is oops and why we use oops?
How does polymorphism work?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Which language is not a true object oriented programming language?