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...

Is class an Object? Is object a class?

Answer Posted / murthy

A class is neither an object nor an object is a class.
A class is like a blue print for an object.
An object is an instance of a class.

Some people have given the right examples above and some
more goes here:
You can consider a blue print for your house is a class.
You cannot stay in blue print :).
The building built based on the blue print is called an
object. You can stay in it.

Class should be treated like a "data type" and an object
like a instance of that datatype.
for e.g., int i; you can considet int as a class and i as
an instance of an object.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a default method? Why do we need default methods in java 8 interfaces?

1055


What is a functional interface? What is sam interface?

1092


Is it possible to provide method implementations in java interfaces? If possible, how do we provide them?

934


What do you mean by polymorphism?

1038


What are the features that are provided to make a program modular?

1071


What are the limitations of oops?

1010


Can we access interface static method using interface references?

1057


Why is OOP good?

956


What are extrinsic and intrinsic connections in object-oriented programming?

1023


What is the use of interface?

1060


What is a friend function?

981


Whether static method can use nonstatic members?

949


What is the benefit of using inheritance?

1029


Can a class in java be inherited from more than one class?

922


Difference between encapsulation and data hiding ?

889