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 16:30
Primary tech skills are skills that are necessary for success in online education
Answers: 3
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
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, 01.09.2021 18:20
question
English, 01.09.2021 18:20
question
Mathematics, 01.09.2021 18:20
question
Mathematics, 01.09.2021 18:20
Questions on the website: 13722367