Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 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.  
  8.  
  9. namespace ConsoleApplication1
  10. {
  11. class Program
  12. {
  13. public class konty
  14. {
  15.  
  16. public int a;
  17. public int b;
  18. public int c;
  19.  
  20. public konty()
  21. {
  22. a = 0;
  23. b = 0;
  24. c = 0;
  25. po
  26.  
  27. }
  28.  
  29. public konty(int _a, int _b, int _c)
  30. {
  31. a = _a;
  32. b = _b;
  33. c = _c;
  34. }
  35.  
  36. public void napisz(int _a, int _b, int _c)
  37. {
  38. a = _a;
  39. b = _b;
  40. c = _c;
  41. }
  42. public void napisz(int _a, int _b, int _c double _pole;)
  43. {
  44. a = _a;
  45. b = _b;
  46. c = _c;
  47. pole = _pole;
  48. }
  49.  
  50. public void obw()
  51. {
  52. obw = a + b + c;
  53. }
  54.  
  55. }
  56.  
  57.  
  58. static void Main(string[] args)
  59. {
  60. konty kont = new konty();
  61. konty prost = new konty(2, 1, 2);
  62.  
  63.  
  64. Console.ReadKey();
  65. }
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement