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