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

Explain about abstraction?

1038


What is meant by function overloading and function overriding?

943


Is is possible to define our own functional interface?

1011


How many instances can be created for an abstract class?

912


Can you create an instance of an abstract class?

944


What is super keyword?

921


what three "domains" are considered during analysis modeling?

6863


What is the difference between an abstract class and interface in java?

973


What do you mean by "explicitly implemeting an interface". Give an example?

976


Explain what is an object?

931


Difference between abstraction and implementation hiding ?

1054


What are the basic concepts of oop?

968


Whether static method can use nonstatic members?

920


What is a final variable?

980


What are sealed modifiers?

1024