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

How do you remove an object from an arraylist in java?

463


Explain about fail fast iterators in java?

560


How is final different from finally and finalize?

496


Can we store variables in local blocks?

784


Is age discrete or continuous?

686






What is fundamental datatype?

527


What is meant by method overriding?

544


List implementations of list interface?

563


Explain the difference between an Interface and an Abstract class?

624


Is a method a procedure?

557


What is boolean strategy?

624


How can an object be unreferenced?

541


How do you find the absolute value?

559


What is a class in java?

580


Describe what a thread-local variable is in java?

565