More on Inheritance in C++

In Object Oriented Programming Inheritance is the process by which objects of one class acquire the properties and functionality of objects of another class. It supports the concept of hierarchical classification. For example, the bird robin is a part of the class...

Inheritance in C++

In Object Oriented Programming Inheritance is the process by which objects of one class acquire the properties and functionality of objects of another class. It supports the concept of hierarchical classification. For example, the bird robin is a part of the class...

Objects

Structured programming only deals with procedures (functions) and variables. The basic idea behind the Object Oriented Programming is that it deals with the objects. In real life everything is an object and every object has properties and functionality. As everything...

Classes

If we say that a particular programming language is Object Oriented then it means, the programming language must have the facility to define classes in it. A class is an expanded concept of a data structure i.e instead of containing data only, it can contain both data...

Encapsulation

Object oriented programming is a new way of approaching the job of programming. Object oriented programming will seem very unnatural to a programmer with a lot of procedural programming experience. This tutorial is the beginning of the definition of object oriented...

More on Encapsulation

The purpose of this tutorial is to illustrate how to use some of the traditional aspects of C or C++ with classes and objects. Pointers to an object as well as pointers within an object will be illustrated. Arrays embedded within an object, and an array of objects...

Multiple Inheritance in C++

C++ version 2.0 was released by AT&T during the summer of 1989, and the major addition to the language is multiple inheritance, the ability to inherit data and methods from more than one class into a subclass. Multiple inheritance and a few of the other additions to...

Introduction to Classes in C++

The data types we have applied so far to our variables were used to identify individual items. To create more advanced and complete objects, C++ allows you to group these identifiers and create a newly defined object. An object, such as a CD Player, a printer, a car,...