Why would you overload the main class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why would you overload the main class?

I have just learned that you can overload the main class. What is the point of doing this?

24th Mar 2018, 10:10 AM
teachme
1 Answer
+ 2
You can start the program per console with different parameters. String [] args is not a must. Can have int y as well. Or both (overloaded)
24th Mar 2018, 1:30 PM
Maximilian Sauer
Maximilian Sauer - avatar