Explain the concept of inheritance in C++.

Answer Posted / nashiinformaticssolutions

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

How can I learn dev c++ programming?

764


What is the difference between a template and a macro?

788


What is a set in c++?

705


What are the advantages of c++?

1269


How many types of scopes are there in c++?

779


Explain differences between new() and delete()?

814


Is it possible to provide special behavior for one instance of a template but not for other instances?

822


What is using namespace std in cpp?

744


Explain the difference between abstract class and interface in c++?

730


Can a Structure contain a Pointer to itself?

788


Is python written in c or c++?

850


Explain some examples of operator overloading?

860


Explain Memory Allocation in C/C++ ?

814


What is a block in c++?

777


What is &x in c++?

757