what is difference between class and object?

Answer Posted / p govind rao

1) class is a group of a object that shares common
property.
2) class is a collection of methods and functionality.
3) Object is real time entity of class or it is a
instance of class.
4) A Class is a blueprint of an object or we can say
that its a template of an object.
5) Class –Classe defines object, Object -Object can't
define classes.
6) Class -Object properties can access by class
instance on which that object is residing.
7) Object-Should be belonging to any of the class.
8) Object - Can created and destroyed as your
necessity.
9) Class-One class can define any no of Object Class
is templet for an object.Object is an instance of a class.
10) Class cannot be passed as a prameter or
orguments,But object can be passed as argument or parameter.

Is This Answer Correct ?    57 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java based on c?

524


Is zero a positive integer?

523


How to create com object in Java?

642


What are autoboxing and unboxing? When does it occur?

528


Explain the concept of hashtables?

607






Can we override private constructor in java?

498


Can we sort list in java?

594


what is enumset?

578


What is the maximum size of a string in java?

543


What is Java Package and which package is imported by default?

586


What is array initialization in java?

484


What is native code?

529


What is the use of default method in interface in java? Explain

539


What is the generic class?

523


What is thread synchronization in java?

476