subject

ClassB and ClassA have no special relationship; they are two separate classes both used by the same main(). void methodB( ClassA aObj ) is a method ofclassB. It takes a ClassA object as an ordinary parameter. The client, main(), calls methodB(). Here is an outline of the situation:
class ClassA
{
private:
char someMemb;
};
class ClassB
{
public:
void methodB( ClassA aObj );
};
int main()
{
ClassA myObjA;
ClassB myObjB;
myObjB. methodB ( myObjA );
}
Check all the true statements (Check all that apply):
A. If methodB() modifies aObj's someMemb, the client's myObjA's someMemb will also be modified, accordingly, when the method returns.
B. If methodB() modifies aObj's someMemb, the client's myObjA's someMemb will not be modified when the method returns.
C. methodB() can change aObj's someMemb value through direct assignment, as in aObj. someMemb = something.
D. methodB() can read (access) aObj's someMemb value directly without changing it, as in something = aObj. someMemb.
E. methodB() can read from (access) and/or write to (change) aObj's someMemb indirectly through appropriate public ClassA methods, if ClassA offers such methods.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
You receive an email from an impressive-sounding stranger, professor alexander rothschild renard iii, president of the american institute for scientific political statesmen. he urges you to vote for his presidential candidate choice. this social media red flag is known as
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
In he example code, what does the title attribute create? a tool tip an element a source a markup
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Write a full class definition for a class named player , and containing the following members: a data member name of type string .a data member score of type int .a member function called setname that accepts a parameter and assigns it to name . the function returns no value.a member function called setscore that accepts a parameter and assigns it to score . the function returns no value.a member function called getname that accepts no parameters and returns the value of name .a member function called getscore that accepts no parameters and returns the value of score .this is what i have, aparently this is wrong: class player{private: string name; int score; public: void player: : setname (string n){name =n; }void player: : setscore (int s){score = s; }string player: : getname (){return name; }int player: : getscore (){return score; }};
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
Creating "smart interfaces" in all sectors of industry, government, and the public arena is one of the fastest growing hct areas. these interfaces model, interpret, and analyze such human characteristics as speech, gesture, and vision. the field of biometrics, in which humans authenticate themselves to machines, is an area of considerable interest to hct practitioners. fingerprint scans are one of the most frequently used biometric options, and this article, biometric student identification: practical solutions for accountability & security in schools, makes a case for the implementation of fingerprint scans in schools. critique the article, and answer the following questions: according to the author, what are the main benefits of adopting fingerprint scans in schools for student identification? according to the author, what are the main drawbacks of adopting fingerprint scans in schools for student identification? do you agree with the author's assessment of the pl
Answers: 2
You know the right answer?
ClassB and ClassA have no special relationship; they are two separate classes both used by the same...
Questions
Questions on the website: 13722363