This is termed "inheritance"
and is a very important feature of OOP.
Maintenance: Object oriented code is easier to maintain because it follows
somewhat strict coding conventions and is written in a self explanatory
format. For example, when a developer extends it, refactors it, or debugs
it, they can easily find out the inner coding structure and maintain the
code time after time. Moreover, whenever there is a team development
environment in your project, OOP could be the best solution because you can
distribute your code after splitting it into small parts. These small parts could
be developed as a separate object, so developers can develop them almost
independently. Finally, it will be very easy to merge the code.
???
???
???
???
Chapter 1
[ 13 ]
Efficiency: The concept of object oriented programming is actually
developed for better efficiency and ease of development process. Several
design patterns are developed to create better and efficient code. Moreover
in OOP, you can think of your solution in a much better approach than
procedural programming. Because you first split your problem into a small
set of problems and then find solutions for each of them, the big problem is
solved automatically.
Pages:
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29