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