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