Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between class and object?

Answer Posted / jayasrinivas.donavalli

class:class is an abstract data type in which both Member
functions and member variable are declared that means
aclass is userdefined data type in which we will be able to
declare both methods and variable.
object : Object is an Instance of the class.The class is a
valid one when object is created.
For one class we will have more number of Objects.
declaration of class in
class classname
{
public:
Member variables;
Member functions();
protected:
Member variables;
Member functions();
Private:
Member variables;
Member functions();
};
Declaration of Objects:
class classname allaisname;
here allias name is nothing but objectname.
if we want to get the data from that particular we have to
use objects.
objectname.functionname();

Is This Answer Correct ?    26 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between encapsulation and polymorphism?

1049


Why is polymorphism used?

997


What is object in oops?

1024


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4084


can we make game by using c

4040


What is the types of inheritance?

1031


What is coupling in oops?

1069


Can destructor be overloaded?

979


to find out the minimum of two integer number of two different classes using friend function

2080


What is the difference between a mixin and inheritance?

936


Plese get me a perfect C++ program for railway/airway reservation with all details.

3841


What is the main feature of oop?

1101


What is solid in oops?

1044


what is different between oops and c++

2458


How is polymorphism achieved?

1002