Dec-13-2017, 08:26 PM
(Dec-13-2017, 04:06 PM)hshivaraj Wrote:Quote:IOW, from your example, I don't see how to have a variable based on Animal that is an instance of Dog.Python is dynamically typed language and therefore the concept of dynamic binding is not relevant. The point of using an abstract class is to enforce the subclass to implement certain methods in the deriving class. And also you cant instigate an object of type class which has an abstract method.
Gotcha. This is one area where Python is much different (not in a bad way) than Java.
Appreciate your reply.