Answer Posted / shambhu gupta
Class is a user defined data type whereas Object can be
veiwed as a variable of class type
For example fruit is a class & mango,apple are different
objects of class fruit.
Class can be a person whereas objects can be any existing
person like Ram ,Shayam,Rahul etc
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Differences between functional programming and object-oriented programming?
What are the problems faced by the developer using object oriented programming language?
Explain what is meant by polymorphism?
How many methods do u implement if implement the serializable interface?
What is overriding?
Define modularity?
What is bootstrap, extension and system class loader?
What is virtual?
What is the difference between class and interface?
Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?
What is Overloading ? Is it similar to overriding ?
What are abstract classes?
What is the difference between new and override?
What is polymorphism? When is it employed? give an example.
What is the default access modifier for a class,struct and an interface declared directly with a namespace?