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 are Classes and Objects?

977


What are the basic concepts of oop?

950


Describe the Diamond problem. Where does this problem occur?

878


What are sealed modifiers?

1011


Name some languages which have object oriented language and characteristics?

936


Name the different creational patterns in object oriented design?

951


What is the difference between data hiding and implementation?

993


What are the rules to define a functional interface?

968


What are the different types of arguments?

944


What is bootstrap, extension and system class loader? Or can you explain primordial class loader?

944


what three "domains" are considered during analysis modeling?

6840


Write a note about inheritance?

887


Explain about uml?

918


Explain serialization and overriding?

1019


What is the syntax of object oriented method call?

943