I'm actually teaching a Python class on OOP and as I'm catching up on the most proficient method to clarify classes, I saw a empty class definition:
The model at that point proceeds to characterize a name and different attributes for an object of this class:
john = Employee()
john.full_name = "john doe"
I'm contemplating whether there's a method to powerfully characterize a function for an occasion of a class this way? something like:
john.greet() = print 'Hello, World!'
This didn't work in my Python interpreter, however, is there another method of doing it?