3 ms·
If you don't "get" the new menu, you are "program centric", but in a Fortran 66 way, not in an 1990 OOP way. Constructing a new object is a constructor call fr
by kazinator 5y ago
If you don't "get" the new menu, you are "program centric", but in a Fortran 66 way, not in an 1990 OOP way.
Constructing a new object is a constructor call from OOP.
Without arguments, you get some default, representative instance.
Look at Python:
New integer: representative default instance is zero:
>>> int()
0
New string: empty by default:
>>> str()
''
New bool: false by default.
>>> bool()
False