Why do Java constructors need to have the same name as the class?
What makes: public class Main{ public static void main(String[]args){ character f = new character(); f.saying(); } } class character { int hieght; int age; String name; void saying() { System.out.println("This is my saying"); } void saying(String s){ System.out.println(s); } } Any Different from public class Main{ public static void main(String[]args){ character f = new character(); f.character(); } } class character { int hieght; int age; String name; void character() { System.out.println("This is my saying"); } void character(String s){ System.out.println(s); } } Thanks!