static void MyLesson11Examples() { Lesson11 myOtherEleven = new Lesson11(42); Lesson11 myEleven = new Lesson11("Happy", 42); Lesson11 MyLesson11 = new Lesson11(); Lesson11Struct myStruct = new Lesson11Struct(9.99m, "King", "The Stand"); int myValue = 14; myEleven.MyBasicRefExample(ref myValue); Console.WriteLine(myValue + " from program"); string first, last; MyLesson11.MyBasicOutExample("Foghorn Leghorn", out first, out last); Console.WriteLine(first); Console.WriteLine(last); } // end method my lesson 11 examples
} // end my beer song static void MyLesson11Examples() { Lesson11 myEleven = new Lesson11("Happy", 69); Lesson11 myOtherEleven = new Lesson11(22); Lesson11 MyLesson11 = new Lesson11(); Lesson11Struct myStruct = new Lesson11Struct(15.99m, "Jefferson", "The Calling"); int myValue = 14; myEleven.MyBasicRefExample(ref myValue); Console.WriteLine(myValue + " from program"); string first, last; MyLesson11.MyBasicOutExample("Optimus Prime", out first, out last); Console.WriteLine(first); Console.WriteLine(last); } // end method my lesson 11 examples