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 object and class

Answer Posted / prema

Class is a template or a plan for creating objects.

For example: For construction of building we need a plan.
Without plan we can't construct building. Here plan acts as
class. Building acts as object.Using the same plan we can
build any number of building.

In the same way we can create any number of objects for the
same class.Class tell whats the object state and behaviour.
Basically class tells what the object should have.

Object is an real world entity, which has something and
which know something. It means ojects has state and
behaviour.State of the object is represented by instance
variable. Behaviours are representd by methods.

Is This Answer Correct ?    24 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a subsequence of a string?

1002


How do you stop a thread in java?

1001


How does sublist works in java?

900


How do you join strings in java?

980


Is alive and join method in java?

1057


Can we start a thread twice in java?

909


Can we restart a dead thread in java?

930


What is the file extension for java?

1019


What is set and get methods in java?

926


List some features of the abstract class.

996


What is a numeric literal?

995


What do negative exponents mean?

964


Is alive in java?

896


How many ways can we create the string object?

960


What is variable in java?

915