what is difference between class and object?

Answer Posted / ovn

•class is collection of objects.object is a real world
entity.
Class is template for an object and object is a instance of
a class.
•Class defines object but object cannot define a classes.
•Class cannot be passed as a parameter or arguments, but
object can be passes as parameter or argument.
•Object should be belonging to any of class.
•Object can create or delete as your necessity.
•Attributes and behaviors of class can access with the help
of objects.
attribute and beheviours of class can access with the help
of objects.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between multitasking and multithreading in Java

728


What are the differences between abstract class and interface?

515


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

576


What is Session reduplication and how its done?

1569


What are the java ide’s?

577






What is the method in java?

604


What is ternary operator in java?

597


What is hashset in java?

534


What is anti pattern in cyber security?

528


What is <> used for in java?

674


Can we use return in constructor?

497


how we can make a write-only class in java?

563


What is the difference between a synchronized method and a synchronized block?

611


What is java full form?

534


What does sprintf mean?

540