Advertisement
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;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Punkt
- {
- private double x, y;
- public double X { get; set; }
- public double Y { get; set; }
- public double PodajX()
- {
- return X;
- }
- public double PodajY()
- {
- return Y;
- }
- public Punkt PobierzWspolrzedne()
- {
- Punkt punkt = new Punkt();
- punkt.X = X;
- punkt.Y = Y;
- return punkt;
- }
- public void UstawWspolrzedne(double wspX, double wspY)
- {
- X = wspX;
- Y = wspY;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement