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: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:30
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
question
Computers and Technology, 24.06.2019 13:30
Type the correct answer in the box. spell all words correctly. what is the default margin width on all four sides of a document? by default, the document has a margin on all four sides.
Answers: 1
You know the right answer?
ClassB and ClassA have no special relationship; they are two separate classes both used by the same...
Questions
question
Mathematics, 11.03.2021 23:20
question
Mathematics, 11.03.2021 23:20
question
Mathematics, 11.03.2021 23:20
question
Mathematics, 11.03.2021 23:20
question
Computers and Technology, 11.03.2021 23:20
Questions on the website: 13722361