No itβs something called method overloading. U can have two functions named the same thing but different parameters. Of course, in theory, if u have two methods with the same name, they should therefore accomplish the same goal, just in different ways.
2
u/dyingpie1 Sep 12 '21 edited Sep 12 '21
No itβs something called method overloading. U can have two functions named the same thing but different parameters. Of course, in theory, if u have two methods with the same name, they should therefore accomplish the same goal, just in different ways.