This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abc import ABC, ABCMeta, abstractmethod | |
class ede(ABC): | |
cook = "Your food is cooked" | |
def foods(self): | |
return self.cook | |
class Kare_Kare(ede): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abc import ABC, ABCMeta, abstractmethod | |
class Product(ABC): | |
price = 0 | |
def getprice(self): | |
return self.price | |
class KareKare(Product): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abc import ABC, ABCMeta, abstractmethod | |
from modules.product import * | |
from modules.cooking import * | |
class Carenderia(ABC): | |
Income = 0 | |
def __init__(self): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from modules.gg import * | |
def main(): | |
a = Cooking() | |
var = 1 | |
while var == 1: | |
a.cook() | |
x = input() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abc import ABC, ABCMeta, abstractmethod | |
class GrayWolf(ABC): | |
classification = "Wolves" | |
name = "Ash" | |
breed = "Gray Wolf" | |
origin = "North America" | |
color = "Gray" | |
size = "Large" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |