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, 22.06.2019 10:40
5. illustrate how fine-line inventory classification can be used with product and market segments. what are the benefits and considerations when classifying inventory by product, market, and product/market?
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
Which of the following types of software is most applicable to the promotion of new products through advertising? a.databases b. spreadsheets c. web design programs d. word processing tools
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
What type of forensic evidence was recovered during the bomb set off at the new mexico facility on the video that was similar to the evidence obtained at the boston bombings and how did the evidence allow the researchers to connect other pieces of evidence to the same bomb?
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
question
Mathematics, 12.02.2021 14:00
question
Mathematics, 12.02.2021 14:00
question
Mathematics, 12.02.2021 14:00
question
English, 12.02.2021 14:00
question
Mathematics, 12.02.2021 14:00
Questions on the website: 13722363