don't have an answer to it. It's not java-only question, but more OOP one.
Few days ago I was interviewing candidate for junior java dev position. And I asked about OOP concepts. And she was third candidate in the row who was saying the same thing like: "polymorphism is one of 3 key concepts of OOP, and it's about overriding and overloading".
And I couldn't resist anymore to ask: how the hell overloading is related to OOP??? And the problem is that I can't find any answer to it. I clearly see that there can be overloading without any OOP at all. But everything that I find in google is talking about overloading being part of OOP.
So I have 2 questions for this:
- does anyone know something about this subject?
- does anyone know any non-oop language that supports overloading?
And here I dropped c++ overloading example which doesn't use any OOP features. Just as an example
https://pastebin.com/kt1Y1LCb
I know of a pure OOP language which doesn't have overloading :), smalltalk
Обсуждают сегодня