what is difference between class and object?

Answer Posted / akhandam revathi

CLASSES- A class is a collection of objects of similar
type. Ex:mango,apple and orange are members of the class
fruit.


OBJECTS- An object is an abstract representation of a real
world entity that has a unique identity,embedded properties
and the ability to interact with each other.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a static method be final?

566


What are passing parameters?

598


Explain OOPs concept.

657


Difference between static synchronization vs. Instance synchronization?

576


what is object-oriented programming in java?

593






Can private class be inherited in java?

564


What a static class can contains?

710


How many types of constructors are used in java?

549


Why is whitespace important?

565


What is collection api?

620


What is string example?

609


What is the difference between notify and notifyall method?

624


What is jit compiler in java?

597


How to set the permissions to a file in java?

544


Explain about automatic type conversion in java?

577