Solved

MysteryClass -First: Int

Question 43

Multiple Choice

MysteryClass
-first: int
-second: double;
+MysteryClass()
+MysteryClass(int)
+MysteryClass(double) ;
+MysteryClass(int, double)
+setData(int, double) : void
+getFirst() : int
+getSecond() : double
+doubleFirst() : int
+squareSecond() : double
+print() : void
+equals(MysteryClass) : boolean
+makeCopy(MysteryClass) : void
+getCopy() :MysteryClass
According to the UML class diagram in the accompanying figure, which of the following is a data member?


A) MysteryClass
B) print()
C) second
D) getFirst

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions