public static void UseDefaultConstructor() { HomoSapiens randomGuy = new HomoSapiens(); // Public member methods can still be invoked, but the information will be missing randomGuy.IntroduceMyself(); }
public static void UseParameterizedConstructor() { HomoSapiens justin = new HomoSapiens("Justin", 10); justin.IntroduceMyself(); // Note that not all parameters need to be entered, as long as there is an overload for it HomoSapiens jason = new HomoSapiens("Jason"); jason.IntroduceMyself(); }