Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace DAF1
- {
- public class Circle
- {
- private int radius;
- private Point center;
- public Circle(int radius,int x,int y)
- {
- this.radius = radius ;
- this.center = new Point(x,y);
- }
- public void SetCenter(int newX, int newY)
- {
- this.center.SetX(newX);
- this.center.SetY(newY);
- }
- public void Display()
- {
- return "Center Point: " + Point.ToString() + "Radius: " + this.radius;
- }
- }
- }
Add Comment
Please, Sign In to add comment