Unit 1 Object Orinted Programming
Unit 1 Object Orinted Programming
There are mainly two types of programming language and those are:
Low level language: -Low level language is a programming
language in which each statement or instruction is directly translated
into a single machine code. It is machine dependent.
13.What is class?
Class is a collection or group of similar objects that have same
properties common behavior and relationships.
14.What is Encapsulation?
Encapsulation is the process that allows selective hiding data and
functions in a class.
15.What is Polymorphism?
Polymorphism enables the same function to behave differently on
different classes.
17.What is inheritance?
Inheritance is the property that allows the reuse of an existing class to
build a new class. The principle in this sort of division is that each subclass
shares common properties with the class from which it is derived.
while Overloading it will create more than one method with same name but
different parameter in same class.