Case Study 1:
1. myCanvas = Canvas (800, 600)
2. myLine = Line(Point (-100, -100) , Point (100, 100) )
3. myCanvas.draw(myLine)
-Refer to the session in the accompanying Case Study 1. What can be inferred about the Canvas class?
A) It will have a draw method.
B) It will be constructed with two Points.
C) It does not have a constructor.
D) It will have three instance variables.
Correct Answer:
Verified
Q2: The _ relationship describes two objects where
Q3: In a hierarchy diagram, the most _
Q4: In inheritance, the more general class is
Q5: When two classes are connected by an
Q6: In an expanded object hierarchy for shapes,
Q8: Case Study 1:
1. myCanvas = Canvas (800,
Q9: The _ method of the screen is
Q10: What is the name of the property
Q11: In the object hierarchy presented in the
Q12: How do you call the constructor of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents