diff --git a/lectures/25_inheritance/README.md b/lectures/25_inheritance/README.md index 59b251d..cb5ce25 100644 --- a/lectures/25_inheritance/README.md +++ b/lectures/25_inheritance/README.md @@ -177,6 +177,10 @@ We develop this student_test.cpp program. [student_test4.cpp](student_test4.cpp) In this version, we added the destructor to both the child class and the parent class. This program shows that when the child class object is destroyed, first its own destructor gets called, and then its parent destructor gets called. +### version 5 + +[student_test5.cpp](student_test5.cpp) In this version, we added the CSStudent class, and that introduces multilevel inheritance in the program. + ## 25.7 What will be printed when running this program? #include