Answer Posted / kaushi
object is an instance of a class or in other words object
is a snapshot(blueprint)of a perticuler class.
class is real world object.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Can we have a default method definition in the interface without specifying the keyword "default"?
What if we make the method as abstract in another 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?
Explain persistence?
What is an abstraction?
What are the types of polymorphism?
What are all the operators that cannot be overloaded?
What are the four important foundation concepts of OOP ?
If a method definition has been specified in the base class and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?
What is the purpose of late binding in object-oriented programming?
What is the difference between a virtual method and an abstract method?
Why abstraction is important?
How does abstraction differ from encapsulation.
Differentiate between a class and a method.
What are inner classes and what is the practical implementation of inner classes?