Saved Bookmarks
| 1. |
Give a suitable example using Python code to illustrate single level inheritance considering COUNTRY to be BASE class and STATE to be derived class. |
|
Answer» Class COUNTRY: statejist = [ ] def_init_(self, name): self.name = name class state (COUNTRY): def_init_(self, name, capital): super ( )._init_(name) self.capital = capital |
|