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