QUOTE(gayathrisekar @ 8 Jun, 2007 - 07:14 AM)

explain all topics in c++
You have structures in C where a more powerful concept here is the usage of the 'class' which has all the properties of structures but here we have an object oriented approach. the concern is given to the object and all the attributes are inherited from a general class. This introduces another concept inheritance.
eg: Corolla is an object and it inherits some properties of toyota which further inherits properties from class car
class has the same structure as that of struct but here you can protect or privatize or publicize the attributes for an object.This introduces encapsulation here ie the data are hidden from the user modification.
The general syntax is:
class classname{
private:
//list
public:
//list
protected:
QUOTE(gayathrisekar @ 8 Jun, 2007 - 07:14 AM)

explain all topics in c++
You have structures in C where a more powerful concept here is the usage of the 'class' which has all the properties of structures but here we have an object oriented approach. the concern is given to the object and all the attributes are inherited from a general class. This introduces another concept inheritance.
eg: Corolla is an object and it inherits some properties of toyota which further inherits properties from class car
class has the same structure as that of struct but here you can protect or privatize or publicize the attributes for an object.This introduces encapsulation here ie the data are hidden from the user modification.
The general syntax is:
class classname{
private:
//list
public:
//list
protected:
//list
//functions list
}//objects;
This is the declaration part of the class
Until next post bye..Thanks
Sandeep