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 difference between class and object?

Answer Posted / ovn

•class is collection of objects.object is a real world
entity.
Class is template for an object and object is a instance of
a class.
•Class defines object but object cannot define a classes.
•Class cannot be passed as a parameter or arguments, but
object can be passes as parameter or argument.
•Object should be belonging to any of class.
•Object can create or delete as your necessity.
•Attributes and behaviors of class can access with the help
of objects.
attribute and beheviours of class can access with the help
of objects.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between vector and arraylist.

1033


Is linkedlist thread safe in java?

941


How would overload a function based on return type?

919


Define an enumeration?

979


If a class is declared without any access modifiers, where may the class be accessed in java programming?

1136


Can we print null in java?

998


Difference between serialization and deserialization in java?

1078


How many ways can we create singleton class?

915


What loop means?

903


What is the difference between this() and super() in java?

984


What is finalize() function in java?

956


What is an object's lock and which object's have locks in java programming?

998


How many wrapper classes are there in java?

964


What will be the initial value of an object reference which is defined as an instance variable?

1076


What is command line argument in java?

1076