1.
Class
keyword is used to define a class. For Example –
class car
{
}
2.
Class
contains data member and member function (member functions operate on these
data members). For Example –
class car
{
int
speed; //____Data Member____
public:
int
getSpeed(); //____Member
Function____
}
3. An object of a class can be created.
No comments:
Post a Comment