When use method overloading and when use method overriding concept?? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

When use method overloading and when use method overriding concept??

I totally confused to use that both overloading and overriding in java code

29th May 2018, 6:26 PM
PradheepvikiūüėéūüėÄ
PradheepvikiūüėéūüėÄ - avatar
1 Respuesta
+ 1
//C# examples: // overriding class base { public virtual void methodName() } class child : base { public override void methodName() } //overload class whatever { public void methodName(int parameter) { do something ;} public void methodName(string parameter) { do something else; } }
29th May 2018, 7:03 PM
Aethenosity