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 is the buffer limit?
What are the differences between checked exception and unchecked exception?
What are parameters in a method?
What is * argv?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
How define set in java?
What is the use of private static?
What is the major drawback of internal iteration over external iteration?
What is use of static in java?
How to set the permissions to a file in java?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
Can arraylist contain null values?
How do you declare a variable?
Can we use static class instead of singleton?
What is the file extension for java?