Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PyISP
#python 3.6.9 #pyISP #this code is created by Rezaul Hoque on January 18,2022;contact: jewelmrh@yahoo.com,Dhaka, Bangladesh #note: codes shared by Rezaul Hoque on rextester are not for sale; they are created and shared to facilitate the algorithm learning process; many like Hoque use this platform to practice programming ;Rezaul hopes his contribution helps others to fine tune their learning; from abc import ABC, abstractmethod class Motorized(ABC): @abstractmethod def move(self): pass class Boat(Motorized): @abstractmethod def float(self): pass class Amphy(Boat): def move(self): print("Whosh whosh...") def float(self): print("Swimming!") class Scooter(Motorized): def move(self): print("Broom broom...") a=Amphy() s=Scooter() a.move() a.float() s.move()
run
|
edit
|
history
|
help
0
intresting pattern
static
EJ2_PYTHON_20.321.212-7
variables.py
models
StringManipulation
Payth
test3.py
BiseccionPython
Game3