adding lecture 26 inheritance
This commit is contained in:
12
lectures/26_inheritance/README.md
Normal file
12
lectures/26_inheritance/README.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Lecture 26 --- C++ Inheritance and Polymorphism
|
||||||
|
|
||||||
|
## Today’s Lecture
|
||||||
|
|
||||||
|
- Inheritance is a relationship among classes. Examples: bank accounts, polygons, stack & list
|
||||||
|
- Basic mechanisms of inheritance
|
||||||
|
- Types of inheritance
|
||||||
|
- Is-A, Has-A, As-A relationships among classes.
|
||||||
|
- Polymorphism
|
||||||
|
|
||||||
|
## 26.1 Motivating Example: Bank Accounts
|
||||||
|
|
||||||
Reference in New Issue
Block a user