5
5.) Inheritance:
The mechanism of deriving from its base class. OR it is a process by which the objects of one
class acquire the properties of objects of another class. It supports the hierarchy of classification.
6.) Polymorphism:
It stands for ability to make more than one. In C++, the operators and a methods area different
depending on what they are operating. E.g. When an existing as operator ‘ + ’ or ‘ = ’ is given, the
capability to operate on a new data type, it is said to be operator overloading.
Similarly, if
a function call
‘sum’ can have two integers but if we define a function with same name, but taking its string as
argument, we can add them together. Then it is called the function overloading.
e.g. sum (int a, int b)
sum( char N1[20], char N2[20] )
7.) Message Passing:
It is the way of communication in a similar way that we human do.
It involves the name of
message, information to be send.
6
8.) Dynamic Binding:
Binding refer to linking of a procedure call to the code to be executed
in response to the
call. It is also called late binding as the code associated to the given
procedure call is not known
until the time of a call run time. It is associated with polymorphism and inheritance.
Dostları ilə paylaş: