Inheritance

In real life inheritance is what we acquire from our parents. For example our lifestyle, way of talking etc…

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 […]

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 programming, and we will study the topic of encapsulation which is a “divide and […]

Functions in C++

Functions are the building blocks of any programming language.

A Function is a self contained block of code with a specific purpose. It has a name that is used to identify and call it for execution. The function name is global, but it is not necessarily unique in C++. Ivor Hoprton.

Declaration of a Function

The standard form […]

File Handling in C Language

File stores information for many purposes and retrieve whenever required by our programs. A file represents a sequence of bytes on the disk where a group of related data is stored. File is created for permanent storage of data.

Virtual Functions in C++

Once again we are into a completely new topic with terminology which will be new to you. If you are new to object oriented programming, you should follow along in this tutorial very carefully because every attempt has been made to define every detail of this new and somewhat intimidating topic.

One term which must be […]

OOP Techniques

Before getting into the discussion of what are the object oriented programmingtechniques, let’s first look at

What makes a programming language or programming methodology object oriented?

Well, there are several indisputable pillars of object orientation.

These features stand out more than any other as far as object orientation goes.
They are

Encapsulation
Data Hiding
Overloading
Polymorphism
Grand-daddy of them all […]

Pointers in C++

We can say the pointer as a variable which holds the memory address of another variable. If one variable contains the address of another variable, the first variable is said to point to the second.
Declaring a Pointer
If a variable is holding the address of another variable then we can declare it as

Here var_type is the […]

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 will be illustrated. Since objects are simply […]