Tag: Inheritance

Ruby Programming – Inheritance in Ruby

Inheritance is one of the great feature in Object Oriented Programming. Ruby supports inheritance. Inheritance allows to inherit the features of the base classes to...

C++ – Inheritance – to extend class

Inheritance allows to reuse the functionality. Inheritance inherits base class members to it’s derived class. We can use base class members within the derived class...

C++ – Class Constructors

In C++, class constructors are special kind of methods to instantiate a class. When class’s object is going to create, C++ will first call class’s...

C++ – How to define virtual functions?

C++ is a Object Oriented language. C++ uses virtual keyword in different places. One of the use of virtual keyword is to create virtual functions....