C++ Tutorial Home Page

C++ OOPs Concepts

Introduction
Class
Objects
Abstraction
Encapsulation
Polymorphism
Inheritance
Dynamic Binding
Message Passing

C++ OOPs Concepts 2

Class

A class is a way to bind the data describing an entity and its associated functions together.
or
Class is a method of binding together properties and operations on those properties in a single logical unit.
or
Class is a method of binding together data elements and member functions into a single logical unit.

Class definition example:

* A-Class is a user-defined data-type that has data members and member functions.

* Data members are the data variables and member functions are the functions used to manipulate these variables.

* Data variables and member functions together define the properties and behaviour of the objects in a Class.

We can say that a Class in C++ is a blue-print representing a group of objects which shares some common properties and behaviours.