Objects AND Classes

The Key Concept of Object oriented programming language C++ is Class. A  Class is a fundamental language construct for creating the complex user-defined data types. It distinguishes C++ From C language. Its relative importance can be seen from the fact that before the name C++ was coined, the language is called C with Classes.
Major difference between C and C++ is Security. In C language Functions can Access the members of the structures and may accidentally manipulate structure`s data and make it inconsistent. Its because members of structures can be accessed freely. (Security to data is not being rpovided and all members of structure are public, But in case of C With CLASSES (C++) Structures members are Private (Security is being Provided).

Basic Structure of Class is Shown Below:

class classname
{
private:
  data_members;
  members_functions;
public:
  data_members;
  members_functions;
};

Every Class specification begins with a keyword class which informs the compiler that you are specifying a class.
The Detailed information of various parts that it contains given below:

classname : it is only the name of the class given by the programmer. The name of the class should be such that it should convey the purpose  for which it is designed.

{ : It is the opening of a class And body of class is given below it.

Body : The body of a class Consist of variables and associated functions which are collectively known as members of the class. The members of the class either br private or public.
The members which are private in a class can only be accessed by members of the same class and not from outside the class. On the other hand, public members are not only accessible from within a class but also from outside the class.