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
What are the advantages of functions?
How many bits is a char?
What does string [] args mean?
Define how objects are stored in java?
What are white spaces in java?
Why are constructors used?
What are the advantages of exception handling?
What about anonymous inner classes in java?
What happens if constructor is private?
What are the four corner stones of oop?
How many types of variables are there?
How many tetrahedral voids are there in bcc?
What is meant by structural programming?
What is the purpose of skeleton and stub?
What is java lang object?