what is difference between class and object?

Answer Posted / ayisha shoukat

CLASS:
A class is a collction od data members and member
functions.in class data members are private usually
and member functions are private.
And
A class is also like a data type therefore it is used to
declare variabes in oop.


OBJECT:
The variables of a class are objects.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have multiple classes in a single file?

516


What is primitive data type in java?

545


Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification

1379


What are the basic concepts of OOPS in java?

570


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

1989






Explain notify() method of object class ?

616


Can you inherit a constructor java?

579


How do you override a variable in java?

535


What is a local, member and a class variable?

577


Difference between keyword and identifier.

597


What is try-with-resources in java?

617


What is the purpose of extern variable?

544


What is the maximum size of a string in java?

553


What do you mean by object?

552


How hashset works internally in java?

589