Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
abstractmethod 2
#python 3.5.2 from abc import ABCMeta,abstractmethod class shape(metaclass=ABCMeta): @abstractmethod def printarea(self): return 0 class mani(shape): def __init__(self): self.length=15 self.breadth=3 def printarea(self): return self.length*self.breadth am=mani() print(am.printarea()) class sunny(mani): def __init__(self): self.no1=10 self.no2=20 def printarea(self): return self.no1+self.no2 s1=sunny() print(s1.printarea())
run
|
edit
|
history
|
help
0
Code1
Skillenza- Subjects
.....✓[Guess the number]®®®®®®®•$$$$✓.....
Test
Hello,world
3564
Reading XML file for modification
CRAZEEE!
Ok
Ej2_python_204676887