static void ParamsSample() { Lesson11 lesson = new Lesson11(); lesson.Useparams(10, 3, 24, 36, 45, 120); lesson.Useparams(); //accepts 0 and more agruments, just creates a line when prints int[] intArray = { 2, 3, 4, 5, 6 }; lesson.Useparams(intArray); lesson.Useparams2(1, "Happy", false, 34.5F); lesson.OptionalParam("Tom"); lesson.OptionalParam("Ted", 19); }