Answer Posted / anjana
SINGLE INHERITANCE:
ONE BASE CLASS HAVING ONE DERIVED CLASS MEANS THAT IS CALLED SINGLE INHERITANCE.
EXAMPLE:
[A]------->BASE CLASS
|
V
[B]------->DERIVED CLASS
| Is This Answer Correct ? | 39 Yes | 4 No |
Post New Answer View All Answers
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
What is the renewal class?
What is abstraction in oops?
What is encapsulation and abstraction? How are they implemented in C++?
Which language is not a true object oriented programming language?
Explain virtual inheritance?
How does polymorphism work?
How to use CMutex, CSemaphore in VC++ MFC
Why do we use polymorphism in oops?
Who invented oop?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is encapsulation with real life example?
Why is encapsulation used?
Prepare me a program for the animation of train