C++: We want to call parent constructor in our MyClass constructor, with an arg int called foo. What does this look like in .h and .cc? Parent is ParentClass. — .h: MyClass(const int foo); .cc: MyClass::MyClass(const int foo) : ParentClass(foo) { // stuff }
G
1.2K
Google Interview
This flashcard deck made by jwasham contains knowledge about google interview. For more details, please follow https://github.com/jwasham/google-interview-university