Overload

You can have two or more methods in a class with the same name but different parameters, types and order of parameters.


void Method1() { .. } 
void Method1(int a) { .. }
int Method1(int a) { .. }
int Method1(int a, int b) { .. }


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext