Notes
Untitled
Content of the notes (1)
Page 1
class is a user-defined data type
it is a complex data type
it is a collection of member
members--> 1. data member (variables) 2. member functions.
class is a container
class provides the concept of encapsulation
encapsulation is nothing but allowing different data members and member
functions to be bind together inside a class.
class provides the concept of data hiding with private declaration
class is a blue-print original copy to construct the objects
its a plan before constructing the objects.
class is a logical copy to create object (physical copy)
class never occupies the memory objects does
syntax of class ---
Class [clsss name] -- Class here is a keyword
{
Access specifier :
data member ;
member function;
};
Information
- Description
- Note on Untitled, created by Niket Zope on 20/08/2019.
- Created by
- Niket Zope
- Views
- 0
- Rating