subject
Mathematics, 02.04.2020 19:28 destinywiggins75

ClassA has a method, void methodA( ClassA aObj ) , which takes, as a parameter, an object reference of the same ClassA. There are no "sub-classes" (a topic from CS 1B we have not covered in CS 1A) involved. ClassA is the only class in the discussion and is not derived from any other user-defined classes.) Check all the true statements. (Check all that apply):

a. If methodA () modifies a private instance member of the parameter object, aObj, it will result in a simultaneous change of the corresponding private member in the calling object (the this object), even if aObj is a different object than the calling object.
b. methodA() can access private data of its calling object (the this object) directly, as in somePrivateMember = something, without the need for a public mutator or accessor and without the need to dereference anything.
c. If methodA() can access private data of aObj directly, as in aObj. somePrivateMember = something, without the need for a public mutator or accessor.
d. If methodA() modifies a private insta ce member of its calling object (the this object), it will result in a simultaneous change of the corresponding private member in the parameter object, aObj, even if aObj is a different object than the calling object.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 17:30
Hello can you me find all the products
Answers: 1
question
Mathematics, 21.06.2019 17:30
What is not true about kl and mn? what is mn? (show your work)
Answers: 1
question
Mathematics, 21.06.2019 18:30
Atriangle with all sides of equal length is a/an triangle. a. right b. scalene c. equilateral d. isosceles
Answers: 2
question
Mathematics, 21.06.2019 21:00
Me! i will mark brainliest! i don't get polynomials and all that other stuff. so this question is really hard. multiply and simplify.(x - 4) (x^2 – 5x – 6)show your
Answers: 2
You know the right answer?
ClassA has a method, void methodA( ClassA aObj ) , which takes, as a parameter, an object reference...
Questions
question
Health, 14.01.2020 23:31
question
Mathematics, 14.01.2020 23:31
question
Mathematics, 14.01.2020 23:31
Questions on the website: 13722360