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 Object and Class? What are the differences between
them?

Answer Posted / jack

simple analogy for this quest is u declare int x;
and u ask diff between int and x;


Object is an instance of a class.......
--when an object of a class is created the memory for
that class is created...
--U can access the class members using the . operator in
your program....but u r not allowed to access the private
and protected members, which can be accessed by the member
functions only........

Class is the user defined datatype...which contains data
members and member functions.....

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is byval and byref? What are differences between them?

2150


What is oops with example?

997


What is the difference between encapsulation and polymorphism?

1047


What causes polymorphism?

1068


what are the realtime excercises in C++?

2784


What is encapsulation with example?

1024


What is object-oriented programming? Webopedia definition

1178


What is a function in oop?

1019


Can we create object of abstract class?

1029


What is class and object with example?

1058


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2481


What is meant by oops concept?

990


What is abstraction in oop?

1085


What is abstract class in oops?

974


How can you overcome the diamond problem in inheritance?

1138