Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, shadow56
Formula that contains a nested function that first calculates the average of the values in range e6: p6 and uses the round function to round that average to the nearest 10 dollars. use -1 for the value of the number digit argument. would the formula be =round(average(e6: p6),0
Answers: 1
image
Computers and Technology, 22.06.2019 04:00, AngiT
Which spereadsheet type will determine how well a bussiness has done over the past year
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, jadaroyval
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
image
Computers and Technology, 24.06.2019 05:30, MegRasmussen31
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
Do you know the correct answer?
ClassB and ClassA have no special relationship; they are two separate classes both used by the same...

Questions in other subjects:

Konu
Social Studies, 16.11.2020 20:00
Konu
Mathematics, 16.11.2020 20:00
Konu
Mathematics, 16.11.2020 20:00
Konu
Computers and Technology, 16.11.2020 20:00
Konu
Mathematics, 16.11.2020 20:00