Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp1
  8. {
  9. class Punkt
  10. {
  11. private double x, y;
  12.  
  13. public double X { get; set; }
  14. public double Y { get; set; }
  15.  
  16. public double PodajX()
  17. {
  18. return X;
  19. }
  20.  
  21. public double PodajY()
  22. {
  23. return Y;
  24. }
  25.  
  26. public Punkt PobierzWspolrzedne()
  27. {
  28. Punkt punkt = new Punkt();
  29. punkt.X = X;
  30. punkt.Y = Y;
  31.  
  32. return punkt;
  33. }
  34.  
  35. public void UstawWspolrzedne(double wspX, double wspY)
  36. {
  37. X = wspX;
  38. Y = wspY;
  39. }
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement