Saved Bookmarks
| 1. |
If A Base Class Has A Bunch Of Overloaded Constructors, And An Inherited Class Has Another Bunch Of Overloaded Constructors, Can You Enforce A Call From An Inherited Constructor To An Arbitrary Base Constructor? |
|
Answer» Yes, just place a COLON, and then keyword BASE (parameter LIST to invoke the appropriate constructor) in the OVERLOADED constructor definition INSIDE the inherited class. Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class. |
|