Can the main function be overloaded ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can the main function be overloaded ??

If Yes!!! How many languages support this ??

12th Aug 2019, 4:33 PM
Chiranth H B
Chiranth H B - avatar
1 Answer
+ 1
Yes. All languages that support function overloading should support this. I showed it in Java here: https://code.sololearn.com/cMJttGO8jL75 You just need to code different parameters in your second main.
14th Aug 2019, 4:40 AM
John Wells
John Wells - avatar