Skip to content

Instantly share code, notes, and snippets.

@PramodDutta
Created December 5, 2024 02:36
Show Gist options
  • Save PramodDutta/2b10937ceaa42eafd46c44d7e9d05fc5 to your computer and use it in GitHub Desktop.
Save PramodDutta/2b10937ceaa42eafd46c44d7e9d05fc5 to your computer and use it in GitHub Desktop.
from abc import ABC, abstractmethod
class PC:
def __init__(self):
print("PC initialized")
class MotherBoard:
def start(self):
print("MotherBoard started")
class RAM(ABC):
@abstractmethod
def start_ram(self):
pass
class Processor(ABC):
@abstractmethod
def start_processor(self):
pass
class Storage(ABC):
@abstractmethod
def storage_data(self):
pass
@staticmethod
def loadOS():
print("Operating System loaded")
def startMouse(self):
print("Mouse started")
def useHeadPhone(self):
print("Headphones connected")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment