Explain the concept of inheritance in C++.

Answer Posted / hr@tgksolutions.com

Inheritance allows one class (derived class) to acquire the properties and methods of another class (base class). Types: single, multiple, multilevel, hierarchical, hybrid.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the storage qualifiers?

883


Explain 'this' pointer and what would happen if a pointer is deleted twice?

821


How would you obtain segment and offset addresses from a far address of a memory location?

821


Difference between struct and class in terms of access modifier.

940


Explain operator overloading.

806


What is the difference between structures and unions?

788


How do you initialize a string in c++?

736


Describe exception handling concept with an example?

757


Explain rethrowing exceptions with an example?

785


What is iostream in c++ used for?

728


What is the main function c++?

818


write a programme to get a character and thier ASCII value

2789


How would you find out if a linked-list is a cycle or not?

733


Explain how an exception handler is defined and invoked in a Program.

846


Why do we need constructors in c++?

842