Professional Documents
Culture Documents
Introduction To C++
Introduction To C++
Data Data
Functions Functions
Functions
Data
Some of the features of oops are.
Functions
Total
Average
Display
Classes
The entire set of data and code of an object can be made a
user-defined data type with the help of a class . Objects are
actual y variable of the type class .
i ) Once a class has be n defined, we can create any number of
objects belonging to that class . Thus a class is collection of
objects of similar type.
i i) Classes are user defined data types and behaves like the built
in type of a programming language.
iv) The syntax for defining class is
class class -name
{
--------
--------}
Data abstraction and Encapsulation