A subclass can then process each method of superclass anyway (which is
called overriding).
Coupling: Coupling is the behaviour of how classes are dependent on each other.
Loosely coupled architecture is much more reusable than tightly coupled objects. In
the next chapter we will learn details about coupling. Coupling is a very important
concern for designing better objects.
Design Patterns: First invented by the "Gang of Four", design patterns are just tricks
in object oriented programming to solve similar sets of problems with a smarter
approach. Using design patterns (DP) can increase the performance of your whole
application with minimal code written by developers. Sometimes it is not possible
to design optimized solutions without using DP. But unnecessary and unplanned
use of DP can also degrade the performance of your application. We have a chapter
devoted for design patterns in this book.
Subclass: A very common term in OOP, and we use this term throughout this book.
When an object is derived from another object, the derived one is called the subclass
of which it is derived from.
Superclass: A class is superclass to an object if that object is derived from it.
Pages:
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36