Why would you overload the main class? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
+ 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