public static void getSSN()
 {
     Customer cust2 = new Customer();
     
     // Private class member "SSN" can only be accessed within this class (Customer)
     cust2.SSN = 123456789;
 } 
        static void Main(string[] args)
        {
            Customer cust1 = new Customer();

            // Public Customer class members "ID", "firstName" and "lastName" can be accessed by any class
            cust1.ID = 001;
            cust1.firstName = "Bob";
            cust1.lastName = "Smith";
 
        }
예제 #3
0
        static void Main(string[] args)
        {

            var customer = new Customer(0, "Foo");
            customer.Promote();
        }
예제 #4
0
        public static void Main(string[] args)
        {
            var customer = new Customer();

            Amazon.RateCalculator calculator = new RateCalculator();
        }