Advertisement
Guest User

Untitled

a guest
Dec 7th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 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 _028_mostenire
  8. {
  9. class Punct
  10. {
  11. protected int x, y;
  12. public Punct(int _x, int _y)
  13. {
  14. x = _x;
  15. y = _y;
  16. }
  17. public int X
  18. {
  19. get { return x; }
  20. }
  21. public int Y
  22. {
  23. get { return y; }
  24. }
  25. public override string ToString()
  26. {
  27. return "(" + X + ", " + Y + ")";
  28. }
  29.  
  30. class Cerc : Punct
  31. {
  32. private double raza;
  33. public Cerc(int _x, int _y, double R)
  34. : base(_x, _y)
  35. {
  36.  
  37. }
  38.  
  39. }
  40.  
  41. }
  42. }
  43. BAZAAAM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement