Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. using System;
  2.  
  3. namespace business_project
  4. {
  5. //temat 1 zadanie 1,2
  6. public class Person
  7. {
  8. public int Id { get; set; }
  9. public string FirstName { get; set; }
  10. public string LastName { get; set; }
  11. public int Age { get; set; }
  12.  
  13. }
  14.  
  15. public class Employee : Person
  16. {
  17. public int Id { get; set; }
  18. public string FirstName { get; set; }
  19. public string LastName { get; set; }
  20. public int Age { get; set; }
  21. public double salary { get; set; }
  22. public string JobTitle { get; set; }
  23.  
  24. }
  25.  
  26. public class Operation
  27. {
  28. static string HolidayBonus {get; set;}
  29. }
  30.  
  31. //temat1/zadanie5
  32. // public void PrintInfo()
  33. // {
  34. // Console.WriteLine($"Id: {Id}\nFirst name: {FirstName}\nLast name: {LastName}\nAge: {Age}");
  35. // }
  36.  
  37. //temat1/zadanie5
  38. //public void ChangeInfo(string firstName, string lastName, int age)
  39. // {
  40. // firstName = firstName;
  41. // lastName = lastName;
  42. // age = age;
  43. // }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement