Tag Archives: c++

Virtual Base class

In hierarchical inheritance we have seen that a base class is inherited by many derived classes. If derived class is obtained from these derived class then a situation arises where compiler find’s ambiguity. Ambiguity is state where duplication of data … Continue reading

Posted in C++ | Tagged , , , , | Leave a comment

More in inheritance….

We shall continue our course in inheritance. We learnt about syntax, terminology, single inheritance in our last post. Today we shall learn about remaining types of inheritance. Multilevel Inheritance: In single inheritance base class is inherited by only one derived … Continue reading

Posted in C++ | Tagged , , , , , | Leave a comment

Inheritance

It is a great feeling if we could reuse anything which we bought or created. In the same way it is good to reuse the class which we have created earlier in a program. Object Oriented Programming provides this feature … Continue reading

Posted in C++ | Tagged , , , , , , , | Leave a comment

Structure of C++ program

In our last post we have introduced you to the object oriented programming.Today we shall know about the structure of c++ program.The structure of c++ program mainly divided into three parts. 1.Header files 2.Declaration of classes 3.main function Let us … Continue reading

Posted in C++ | Tagged , , , | Leave a comment