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