Program 2 1. Write a class named Circle with the following properties: a. point (x,y) b. Radius 2. Write a constructor which initialize these properties (x.y and radius) 3. Write a method called area which returns the area of the circle(radius * radius) 4. Write a method called Print which prints circle information. 5. Write an application to test your class?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter3: Using Methods, Classes, And Objects
Section: Chapter Questions
Problem 13PE
icon
Related questions
Question
Program 2
1. Write a class named Circle with the following properties:
a. point (x,y)
b. Radius
2. Write a constructor which initialize these properties (x,y and
radius)
3. Write a method called area which returns the area of the
circle(radius * radius)
4. Write a method called Print which prints circle information.
5. Write an application to test your class?
Transcribed Image Text:Program 2 1. Write a class named Circle with the following properties: a. point (x,y) b. Radius 2. Write a constructor which initialize these properties (x,y and radius) 3. Write a method called area which returns the area of the circle(radius * radius) 4. Write a method called Print which prints circle information. 5. Write an application to test your class?
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
void method
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT