From 55566dddea7c2588794116b87276c9557ce9692d Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 1 Dec 2023 01:19:58 -0500 Subject: [PATCH] make the two lines cpp code --- lectures/26_inheritance/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lectures/26_inheritance/README.md b/lectures/26_inheritance/README.md index 7912f78..5f05805 100644 --- a/lectures/26_inheritance/README.md +++ b/lectures/26_inheritance/README.md @@ -106,8 +106,10 @@ protected: }; ``` +```cpp Account a(100); //<---one balance member, not related to c1 CheckingAccount c1(100, 366, 0.4); //c1 has it's own CheckingAccount + Account objects <---one balance member +``` ## 26.4 Constructors and Destructors