Answer Posted / kumar rohit
A class is a generalized template from which object
is created based on its various instances,therefore
we can consider a class as an object while vice-versa
is not possible.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Can we override static methods? Why?
Explain about Overloading vs Overriding ?
What do you mean by data hiding?
Name some languages which have object oriented language and characteristics?
What is the difference between an abstract class and interface in java?
Can an interface contain fields?
What is the significance of encapsulation?
What is composition? Explain the purpose of composition.
What are base class, sub class and super class?
Explain the use of Vtable and what are the various problems to override the functions?
what is virtual function and pure virtual function ?
How many methods are there in the serializable interface?
A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?
What are the major differences between late and dynamic binding?
Explain the term constructor