Classes and Objects....cont(1)

An object is a region of storage with associated semantics. After the declaration int i;
we say that " i is an object of type int ". In C++, "object" usually menas "an instance of a class". Thus, a class defines the behaviour of many objects(instances). For example:
class Myclass
{
int a;
public;
void getval(int);
void display();
};
LEARN MORE>>

No comments: