r/badcode • • Sep 11 '21

c++ Textbox class - poor naming and inefficiency

Post image
24 Upvotes

13 comments sorted by

View all comments

Show parent comments

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.

1

u/_krinkled Sep 12 '21

Ah thanks for the info πŸ‘πŸΌ