3 ms·
His argument was: if the only two things your class does are take in a string when constructed and return it on demand, you don't need the class.
by awj 15y ago
His argument was: if the only two things your class does are take in a string when constructed and return it on demand, you don't need the class.
- BrandonM 15y agoExactly... in this case, the functionality of Artist() is a subset of the functionality of str(). In Python, you would just name the variable "artist", assign a string to it, and be done with it.