Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.javarush.test.level05.lesson07.task04;
- /* Создать класс Circle
- Создать класс (Circle) круг, с тремя инициализаторами:
- - centerX, centerY, radius
- - centerX, centerY, radius, width
- - centerX, centerY, radius, width, color
- */
- public class Circle
- {
- //Напишите тут ваш код
- String fullInfo = null;
- public void initialize (double centerX, double centerY, double radius)
- {
- this.fullInfo = centerX + " " + centerY + " " + radius;
- }
- public void initialize (double centerX, double centerY, double radius, double width)
- {
- this.fullInfo = centerX + " " + centerY + " " + radius + " " + width;
- }
- public void initialize (double centerX, double centerY, double radius, double width, String color)
- {
- this.fullInfo = centerX + " " + centerY + " " + radius + " " + width + " " + color;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement