what is difference between class and object?

Answer Posted / deepak maurya

object is an instance of a class.
class is a collection of object.

object do not contain sub parts.
class do contain sub part ie; sub-class

object do contain some information.
class do not contain some information

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the point of java?

554


Write code of any action class?

546


How do you add an element to a hashset in java?

490


What does a za z0 9 mean?

562


What is the name of the java compiler?

528






Difference between this() and super() in java ?

615


How do you call a reference in java?

519


Why is singleton class used?

527


What is an class?

593


What are the disadvantages of object oriented programming?

594


In java, what is the difference between method overloading and method overriding?

581


Where will it be used?

1510


Why vector class is used?

541


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

599


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

1731