Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PaymentClasses
- {
- public class Customer
- {
- private string strFirstName;
- private string strLastName;
- private string address;
- public string FirstName
- {
- get
- {
- return strFirstName;
- }
- set
- {
- strFirstName = value;
- }
- }
- public string LastName
- {
- get
- { return strLastName; }
- set
- { strLastName = value; }
- }
- public string Address
- {
- get { return address; }
- set { address = value; }
- }
- public Customer(string fName, string lName, string add)
- {
- FirstName = fName;
- LastName = lName;
- Address = add;
- }
- public Customer()
- {
- }
- public override String ToString()
- {
- return "Thank you " + FirstName + " " + LastName + "!! " + Environment.NewLine + Address + Environment.NewLine;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement