im a astudent @ LTHS, in my forst year of Java, how do i make a default, and non-default contructor, and how to they work?
[QUOTE=thines01;1038027]A default constructor is one that takes no parameters and sets the initial values for the class. [/QUOTE] Not exactly. Constructors can have arguments, or no arguments. If you do not create any constructors, the compiler gives you a "default" constructor which is a no-args constructor that simply calls the … Read More
Edited by JamesCherrill: n/a