What are the advantages of inheritance?
Answer Posted / qureshi s.
In inheritance , we acquire or inherite the properties of
existing class. i.e here reusability is occur which means
that we can add the additional feauters into an existing
class without modifying it.
inheritance saves the programmer time and effort. written
can be reused in various situations as needed.
It Increases Program Structure which results in greater
reliability.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is encapsulation with real life example?
What is a class and object?
What is a superclass in oop?
What are the 3 pillars of oop?
Whats oop mean?
What are the three parts of a simple empty class?
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's the basic's in dot net
What is static in oop?
what is different between oops and c++
What is and I oop mean?
What is the difference between a constructor and a destructor?
What is polymorphism and example?
What is solid in oops?
What is multilevel inheritance explain with example?