Apuntes
Sin título
Contenido del apunte (1)
Página 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;
};
Información
- Descripción
- Apunte sobre Sin título, creado por Niket Zope el 20/08/2019.
- Creado por
- Niket Zope
- Visitas
- 0
- Valoración