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

How to pass arraylist to stored procedure in java?

550


What are the advantages and disadvantages of object cloning?

571


What are the core java topics?

565


Explain the difference between abstract classes and interfaces in java?

598


How do you sort arraylist in descending order?

576






What do you know about java?

524


What are the 3 types of loops in java?

531


How large is a boolean?

553


What is sleep method?

623


Difference difference paint() and paintcomponent()?

532


What is an interface in java?

563


How do you override a variable in java?

531


What is append function?

570


How do you write methodology?

562


What does exclamation mean in java?

573