你的名字
主題
| 來自:ywsing0 | 時間:Sat 2018-07-21 06:54:01 | | Sing Yiu Wah >> | derived class can always access (protected) members of the base class. this happens no matter virtual or not. | | virtual is to let the derived class change the behaviours of certain member functions... implement them as brand new (as in pure virtual), or re-implement in other ways, or e.g. call the base method but add some logic before/after, etc. | | this talks about when u casted the derived object to a pointer to the base class. omg why so complex...
發出