Advertisement
Guest User

Customer

a guest
Apr 25th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 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 PaymentClasses
  8. {
  9. public class Customer
  10. {
  11. private string strFirstName;
  12. private string strLastName;
  13. private string address;
  14.  
  15. public string FirstName
  16. {
  17. get
  18. {
  19. return strFirstName;
  20. }
  21. set
  22. {
  23. strFirstName = value;
  24. }
  25. }
  26.  
  27. public string LastName
  28. {
  29. get
  30. { return strLastName; }
  31. set
  32. { strLastName = value; }
  33. }
  34.  
  35. public string Address
  36. {
  37. get { return address; }
  38. set { address = value; }
  39. }
  40.  
  41. public Customer(string fName, string lName, string add)
  42. {
  43. FirstName = fName;
  44. LastName = lName;
  45. Address = add;
  46. }
  47.  
  48. public Customer()
  49. {
  50. }
  51.  
  52. public override String ToString()
  53. {
  54. return "Thank you " + FirstName + " " + LastName + "!! " + Environment.NewLine + Address + Environment.NewLine;
  55. }
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement