From d11cf5015d3a07ebadd9d2014abbb9f4923d8034 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Mon, 27 Nov 2023 01:41:53 -0500 Subject: [PATCH] adding lecture 26 inheritance --- lectures/26_inheritance/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lectures/26_inheritance/README.md diff --git a/lectures/26_inheritance/README.md b/lectures/26_inheritance/README.md new file mode 100644 index 0000000..42a5ceb --- /dev/null +++ b/lectures/26_inheritance/README.md @@ -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 +