| OOP |
Abbreviated
"OOP," it refers to programming that supports object
technology. It is an evolutionary form of modular programming with more
formal rules that allow pieces of software to be reused and interchanged
between programs. Major concepts are encapsulation, inheritance and
polymorphism. |
| Inheritance |
Inheritance is the process by
which one object acquires the properties of another object! |
| |
|
| Polymorphism |
Polymorphism (from the Greek,
meaning "many forms") is a feature that allows one interface
to be used for a general class of actions! The specific action is
determined by the exact nature of the situation. More generally, the
concept of polymorphism is expressed by the phrase "One interface,
Multiple Methods". This means that is possible to design a generic
interface to a group of related activities. |
| |
|
| Override |
In a class hierarchy, when a method in a subclass has the same name and
type signature as a method in its superclass, then the method in the
subclass is said to override the method in the superclass. |
| |
|
| Class |
Is declared by use of its
keyword, defines variables and methods (functions) that are related to
each other into a data type! Once defined, this new type can be used to
create objects of that type! |
| |
|
| Encapsulation |
Encapsulation is the mechanism
that binds together code and the data it manipulates, and keeps both
safe from outside interference and misuse. One way to think about
encapsulation is as a protective wrapper that prevents the code and data
from being arbitrarily accessed by other code defined outside the
wrapper. |
| |
|
| |
|
| |
|
| |
|
| |
|