From 235168710e4b4283e642227dc95306bda20d50b0 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 11 Apr 2025 04:58:52 -0400 Subject: [PATCH] about multi level inheritance --- lectures/25_inheritance/README.md | 4 ++++ 1 file changed, 4 insertions(+) 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