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
How do you remove an object from an arraylist in java?
Explain about fail fast iterators in java?
How is final different from finally and finalize?
Can we store variables in local blocks?
Is age discrete or continuous?
What is fundamental datatype?
What is meant by method overriding?
List implementations of list interface?
Explain the difference between an Interface and an Abstract class?
Is a method a procedure?
What is boolean strategy?
How can an object be unreferenced?
How do you find the absolute value?
What is a class in java?
Describe what a thread-local variable is in java?