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
write a program that list all permutations of ABCDEF in which A appears before B?
Variable of the boolean type is automatically initialized as?
How will you get the platform dependent values like line separator, path separator, etc., ?
Explain the differences between static and dynamic variables?
what is the difference between future and callable interface in java?
What is entry in java?
What is a default constructor and also define copy contrucyor?
What are the java ide's? Explain
What is the same as procedures?
what is heap memory?
Write a program in java to establish a connection between client and server?
What is visibility mode?
How do you define a parameter?
Which api is provided by java for operations on set of objects?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread