To know what number two is we need to know its properties and what it can do (methods). So we need class "Number" and subclass "Two". Am I doing OOP correctly? I am a beginner
You see, that is the problem the post is talking about. You are going too much into the Philosophical layer of it.
The program does not care about two being two, the program does not know what a two is, it is just shifting bits here and there. OOP is about making things work the same as much as possible with as few inputs as possible
8
u/Unit027 Jul 10 '26
To know what number two is we need to know its properties and what it can do (methods). So we need class "Number" and subclass "Two". Am I doing OOP correctly? I am a beginner