Skip to content

Instantly share code, notes, and snippets.

# This is the main.py
from abc import ABC, ABCMeta, abstractmethod
from modules.productprice import *
from modules.productname import *
from datetime import date
from datetime import datetime
from pytz import timezone
class login(ABC):
from abc import ABC, ABCMeta, abstractmethod
class ede(ABC):
cook = "Your food is cooked"
def foods(self):
return self.cook
class Kare_Kare(ede):
from abc import ABC, ABCMeta, abstractmethod
class Product(ABC):
price = 0
def getprice(self):
return self.price
class KareKare(Product):
@Doz12
Doz12 / gg.py
Last active July 21, 2019 13:10
from abc import ABC, ABCMeta, abstractmethod
from modules.product import *
from modules.cooking import *
class Carenderia(ABC):
Income = 0
def __init__(self):
pass
from modules.gg import *
def main():
a = Cooking()
var = 1
while var == 1:
a.cook()
x = input()
from abc import ABC, ABCMeta, abstractmethod
class Phones(ABC):
screen = "LCD"
size = "Large"
connectivity = "1G"
navigation = "Keypads"
creation_Date = "September 21, 1983"
name = "8900x-2"
manufacturer = "Motorola"
from abc import ABC, ABCMeta, abstractmethod
class GrayWolf(ABC):
classification = "Wolves"
name = "Ash"
breed = "Gray Wolf"
origin = "North America"
color = "Gray"
size = "Large"
class car:
engine_name = "V8"
def __init__(self, name):
self.name = name
print("Car Created: " + self.name)
def __start_engine(self):
print("Starting Engine ....... " + self.engine_name)
# Inheritance
# car > Mazda > Mazda3
class car:
def __init__(self,name):
self.name = name
print("Car Created: " + self.name)
def start(self):
print("Start: " + self.name)
class car:
def __init__(self,name):
self.name = name
print("Car Created: " + self.name)
def start(self):
print("Start: " + self.name)
def __del__(self):
print("Car Destroyed: " + self.name)