make the two lines cpp code

This commit is contained in:
Jidong Xiao
2023-12-01 01:19:58 -05:00
parent a9049020de
commit 55566dddea

View File

@@ -106,8 +106,10 @@ protected:
}; };
``` ```
```cpp
Account a(100); //<---one balance member, not related to c1 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 CheckingAccount c1(100, 366, 0.4); //c1 has it's own CheckingAccount + Account objects <---one balance member
```
## 26.4 Constructors and Destructors ## 26.4 Constructors and Destructors