+ 4
Fill in the blanks to declare "MyClass", publicly inherited from class "A".
class MyClass : public A { public: int newMember; };
10 odpowiedzi
+ 1
class MyClass
{
private
:
int myData;
public
:
void setMyData(
int
arg) {
myData = arg;
}
};
0
class MyClass : public A {
public:
int newMember;
};
0
class
MyClass :
public
A {
public:
int newMember;
};
0
class
public
0
Fill in the blanks to declare "MyClass", publicly inherited from class "A".
class
MyClass :
public
A {
public:
int newMember;
};
answer :
class
public
0
template
class
class
0
class MyClass
{
private:
int myData;
public:
void setMyData(int arg) {
myData = arg;}
};
0
class MyClass
{
private:
int myData;
public:
int getMyData() {
return myData; }
};
0
class MyClass
{
private:
int myData;
public:
int
getMyData() {
return
myData;
}
};
- 1
class A(){
public:
int oldmember = 90;
}:
class myclass:public A
{
int newmember;
};