What is Inheritance, Multiple Inheritance, Shared and
Repeatable Inheritance?
Answer Posted / mahesh kumar
The mechanism of deriving a new class from an old one is
called inheritance.the old ones is called the base class
and the new one is called the derived or sub class.
MULTIPLE INHERIENCE:one depived class from many base class
is reffered to MI.
| Is This Answer Correct ? | 7 Yes | 0 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 abstraction encapsulation?
What is the diamond problem in inheritance?
What are the 5 oop principles?
What is a superclass in oop?
What is multilevel inheritance explain with example?
Why is static class not inherited?
What is polymorphism give a real life example?
Where is pseudocode used?
What is the importance of oop?
What is abstraction in oops with example?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What are the benefits of polymorphism?
What are the benefits of interface?
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?