+ 4

Fill in the blanks to declare "MyClass", publicly inherited from class "A".

class MyClass : public A { public: int newMember; };

5th Feb 2019, 9:20 AM
İsmail Çavlan
10 Respostas
+ 1
class MyClass { private : int myData; public : void setMyData( int arg) { myData = arg; } };
1st Sep 2021, 2:01 PM
Don Tharindu Prashan
Don Tharindu Prashan - avatar
0
class MyClass : public A { public: int newMember; };
24th Apr 2019, 6:43 AM
Farshid Rahimi
Farshid Rahimi - avatar
0
class MyClass : public A { public: int newMember; };
27th Sep 2019, 6:30 PM
Shaima Alassil
Shaima Alassil - avatar
0
class public
6th Jun 2020, 9:11 PM
Frederick John Suerte
Frederick John Suerte - avatar
0
Fill in the blanks to declare "MyClass", publicly inherited from class "A". class MyClass : public A { public: int newMember; }; answer : class public
23rd Feb 2021, 7:38 AM
changa Hettiarachchi
changa Hettiarachchi - avatar
0
template class class
10th Feb 2022, 7:27 AM
michael mitiku
michael mitiku - avatar
0
class MyClass { private: int myData; public: void setMyData(int arg) { myData = arg;} };
27th Mar 2022, 12:17 PM
Ghulam Qambar Dobal
Ghulam Qambar Dobal - avatar
0
class MyClass { private: int myData; public: int getMyData() { return myData; } };
27th Mar 2022, 12:21 PM
Ghulam Qambar Dobal
Ghulam Qambar Dobal - avatar
0
class MyClass { private: int myData; public: int getMyData() { return myData; } };
21st Oct 2022, 2:11 AM
Arif Setyawan
Arif Setyawan - avatar
- 1
class A(){ public: int oldmember = 90; }: class myclass:public A { int newmember; };
1st Mar 2019, 4:58 PM
Cypher Red
Cypher Red - avatar