30.12.2013 Views

Chapter 6: Inheritance and Abstract Classes Chapter Topics 6.1 ...

Chapter 6: Inheritance and Abstract Classes Chapter Topics 6.1 ...

Chapter 6: Inheritance and Abstract Classes Chapter Topics 6.1 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CS151 Object-Oriented Design<br />

Dr. Kim<br />

<strong>6.1</strong>.3 <strong>Inheritance</strong> Hierarchies<br />

• Programming: <strong>Inheritance</strong> hierarchy<br />

o General superclass at root of tree<br />

o More specific subclasses are children<br />

<strong>6.1</strong>.4 The Substitution Principle (Liskove substitution principle)<br />

• The principle is based on "is-a relationship" between classes.<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!