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 sylabus for priliminaries?

2175


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2614


What is polymorphism in oops with example?

1044


What is basic concept of oop?

1164


what are the ways in which a constructors can be called?

2128


Why we use classes in oop?

1037


What are the three main types of variables?

1123


Give two or more real cenario of virtual function and vertual object

2327


How oops is better than procedural?

1095


Can static class have constructor?

1029


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1850


What is interface in oop?

1123


How is polymorphism achieved?

1055


what are the different types of qualifier in java?

2272


which feature are not hold visual basic of oop?

2191