Ch. - 01. Principles of Object Oriented Programming(Part I)-1
Ch. - 01. Principles of Object Oriented Programming(Part I)-1
2. Data Abstraction
Ans : Data abstraction is the act of representing the essential features without knowing the background details. It is
always relative to the purpose of the uses.
For example, most of us know to use the essential features of a camera to click and view pictures without knowing its
internal mechanism. Likewise, data abstraction allows us to use certain features in Java without knowing the other
background details.
3. Encapsulation
Ans : The system of wrapping data and functions into a single unit is known as Encapsulation.
4. Machine Language
Ans : Machine language is any low-level programming language with instructions for controlling the CPU. It's a
binary format of 0s and 1s. This form of binary instructions is also called machine code or object code. The computer
understand the machine code easily and execute directly.
5. Polymorphism
Ans : The term Polymorphism is defined as the process of using a functions or method for more than one purpose.
For example, the function name Volume( ) can be used by different functions to calculate the volume of a cube or the
volume of a cuboid etc as follows:
Volume(int s)
{
}
Volume(int l, int b, int h)
{
Page 1 of 2
7. Inheritance
Ans : Inheritance can be defined as the process where one class acquired the properties of another class. the class
which inherits the properties of the other class is known as sub class (derived class) and the class whose properties are
inherited is known as super class (base class).
For example, consider a class ‘Vehicle’ and another class ‘Car. Assuming that the ‘Vehicle’ class is already available,
the ‘Car’ class can created by reusing many of the features of the ‘Vehicle’ class.
Base class – The existing class whose properties are inherited by another class is called as the Base class/ Super
class/Parent class.
Derived class – The class that acquires the properties from an existing class is known as Derived class/ Subclass/ Child
class.
In the above example, the ‘Vehicle’ class is the Base class and the ‘Car’ class is the Derived class.
8. Assembly Language
Ans : A language, in which the instructions are coded in term of mnemonics and op-codes(or operation codes), is
known as assembly language. the mnemonics are the abbreviated forms of the instructions, used to write a program.
Whereas, op-codes are the numeric codes of the instruction that are actually fed to the computer for execution.
Example, LD A, LD B, ADD A, B, ST C etc.
Page 2 of 2