Created
December 5, 2024 02:36
-
-
Save PramodDutta/2b10937ceaa42eafd46c44d7e9d05fc5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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, 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