what is difference between class and object?
Answers were Sorted based on User's Feedback
Answer / annie
Object is a real world entity.It can be similar to any single real thing of this world regardless of living and non-living thing,e.g.,a parrot or a room.
When objects that share similar features like behaviour,characteristics..etc. when grouped together can be termed as a class, e.g.,parrot can be an object of class bird, and room can be a object of class building.
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / shweta
class is a basically collection of object.its also called as
a blueprint of object and object is a instance of a
class.for eg.men is a class ans jay,raj is a member of a class.
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / ravinderreddyk
Class:Class is a collection of similar objects.
Object:Object is a instance of class
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / santosh
objects basic runtime entities.object tack up space in memory.
when program executed the objects are sending messages each other.
class contain so many objects.class is set of data members and member functions.we invoke class must create object.
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / bala prasad
class is a collection of methods and static& non static
variables.
Object is the super class of all classes. Object is used to
access non static members of a class.
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / monojit halder
we can not create a or many class from a object
but we can create a or many object from a class
Is This Answer Correct ? | 6 Yes | 10 No |
Answer / gurunath
Guys it's very simple.
Say fruits is a class then apples,mangoes....etc will
become objects.
Is This Answer Correct ? | 9 Yes | 13 No |
Answer / bharti kishnani
class is a collection of methods..
wereas through the objects we can call any method of that
class
Is This Answer Correct ? | 1 Yes | 5 No |
Answer / rg sir
class is nothing but object is everything it depend on
satuation.
for example : if a mouse is a class then its all parts may
be object .
Is This Answer Correct ? | 0 Yes | 6 No |
Answer / mantu mahapatra
class can exist without object, like model of a car can
exist without car.
object can't exist without class , like model of a car
can't exist without car.
which is physically exist in the real world that is known
as object and there logical Existence is known as class
Is This Answer Correct ? | 4 Yes | 11 No |
What is the function of log?
What is mysql driver class name?
In a class implementing an interface, can we change the value of any variable defined in the interface?
Difference between JVM and JRE?
What happens if a constructor is declared private?
What is basic concept of static in java ?
How can we access some class in another class in java?
What is boolean example?
Why java is a platform independent? Explain
What is the use of static class?
What is garbage collection in Java, and how can it be used ?
32 Answers Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,
Can we declare main () method as non static?