Campbell Ritchie wrote:
What does lvl mean? Please read this FAQ. Such abbreviations can seriously confuse non‑English‑speakers who rely on translation tools.
The term top‑level class has nothing to do with the class having a main method or not. It means the class is not inside another class.
If you are writing Java®, beware of what you learnt in C++. The two languages are different and things which appear to be the same can behave differently.
Fred Kleinschmidt wrote:Yes, you should create the instance parameters in your constructor. For example, you might have: