Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var customer = new Customer();
            // If CalculateRating is private in the Customer class, the following code would not compile.
            // var rating = customer.CalcuateRating();

            var customerExampleTwo = new CustomerExampleTwo();
            // RateCalculator is not accessible here because the method is declared as internal but it is accessible within the assembly where is is housed.
            //AccessModifiers_2_OnlineStore.RateCalculator calculator = new RateCalculator();
        }
Exemplo n.º 2
0
 public int Calculate(CustomerExampleTwo customerExampleTwo)
 {
     return(0);
 }