Python Programming
Monday, August 3, 2015
Inheritance and Overriding Methods
This program demonstrates inheritance and overriding methods. The Unprintable_Card class inherits the the Card class, but the __str__ method is overridden. See example below.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment