Classes and Objects....cont(3)

Objects
The declaration of a class does not include objects of that class. It only specifies the type of information the objects of this class type will hold, when created. Objects of a class can be created using the class tag-name as type specifier. The syntax used to declare objects is:
class-name object1, object2, .....objectn;
Ads will appear onthe next page refresh.
For example:
class book;
{
public;
int bookno;
float cost;
LEARN MORE>>

No comments: