1. Write a class "Ball" which extends the class disk. It has deltax and deltay attributes. 2. Write the constructor of this class. 3. Write the mothods move(), reverse DeltaX(), reverseDeltaY() methods which multiplies the coordinates with -1. 4. Write the getters and the setters of the class.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question
1. Write a class "Ball" which extends the class disk. It has deltax and deltay attributes.
2. Write the constructor of this class.
3. Write the mothods move(), reverse Deltax(), reverseDeltaY() methods which multiplies the
coordinates with -1.
4. Write the getters and the setters of the class.
Transcribed Image Text:1. Write a class "Ball" which extends the class disk. It has deltax and deltay attributes. 2. Write the constructor of this class. 3. Write the mothods move(), reverse Deltax(), reverseDeltaY() methods which multiplies the coordinates with -1. 4. Write the getters and the setters of the class.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Development strategies
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,