.java
.class
Both a and b
None of these
class Cat extends Animal
class Animal extends Cat
Both are correct way
None is correct way
Encapsulation
Polymorphism
Abstraction
Inheritance
Class
Object
Method
class
Compilation
Procedure Oriented Programming
Modular Programming
Object Oriented Programming
Compile time
Run time
Both
None
Data hiding
Hiding complexity
Composition
method overriding
method overloading
constructor overloading
operator overloading
Wrapping data fields with methods
Hiding data and internal methods using access modifiers in a class
Using Interfaces
All of the above
. (dot)
+ (plus)
– (minus)
/ (divide)
JVM
Source Code
Bytecode
polymorphism
Multiple inheritance for classes
multiple inheritance of interface
compile time polymorphism
Compile time polymorphism
Execution time polymorphism
Multiple polymorphism
Multilevel polymorphism
Behaviour
Situation
Member Functions
Data Members
Program
High level Language
Function overriding
Function overloading
public
default
Method hiding
Hiding constructor
At run time
At compile time
At coding time
At execution time
Functions of the object
Data Members of the object
Content of an object
All of these
One object is used to create one class.
One class is used to create one object.
One object can create many classes.
One class can create many objects.