# escarrio/dcit-22-oop-project architecture

> Architecture diagram of the GitHub repository escarrio/dcit-22-oop-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/escarrio/dcit-22-oop-project
- Repository: https://github.com/escarrio/dcit-22-oop-project

## Overview

This small OOP project demonstrates phone objects and basic operations. Running `main.py` creates three `Phone` instances, calls or sells them, prints their attributes, and turns one on and off; `phone.py` defines the class and its behavior. Separately, `inheritance.py` demonstrates `Android` and `Iphone` subclasses with their own `open_app` methods. The abstraction, encapsulation, and polymorphism files are empty in the supplied excerpts, so they are not represented as implemented features.

Main entry points: [`main.py`](https://github.com/escarrio/dcit-22-oop-project/blob/main/main.py) (Phone demo), [`inheritance.py`](https://github.com/escarrio/dcit-22-oop-project/blob/main/inheritance.py) (Phone subclasses), [`phone.py`](https://github.com/escarrio/dcit-22-oop-project/blob/main/phone.py) (Phone class)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_runner(("Project runner"))
node_main["Phone demo<br/>[main.py]"]
node_phone["Phone class<br/>[phone.py]"]
node_inheritance_base["Inheritance Phone<br/>[inheritance.py]"]
node_phone_subclasses["Phone subclasses<br/>[inheritance.py]"]

node_runner -->|"runs"| node_main
node_main -->|"creates, invokes"| node_phone
node_phone_subclasses -->|"inherits"| node_inheritance_base

click node_main "https://github.com/escarrio/dcit-22-oop-project/blob/main/main.py"
click node_phone "https://github.com/escarrio/dcit-22-oop-project/blob/main/phone.py"
click node_inheritance_base "https://github.com/escarrio/dcit-22-oop-project/blob/main/inheritance.py"
click node_phone_subclasses "https://github.com/escarrio/dcit-22-oop-project/blob/main/inheritance.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_runner toneIndigo
class node_main,node_phone,node_inheritance_base,node_phone_subclasses toneTeal
```

## Components

### Other components

- **Project runner**
- [Phone demo](https://github.com/escarrio/dcit-22-oop-project/blob/main/main.py): `main.py`
- [Phone class](https://github.com/escarrio/dcit-22-oop-project/blob/main/phone.py): `phone.py`
- [Inheritance Phone](https://github.com/escarrio/dcit-22-oop-project/blob/main/inheritance.py): `inheritance.py`
- [Phone subclasses](https://github.com/escarrio/dcit-22-oop-project/blob/main/inheritance.py): `inheritance.py`

## Connections

- Project runner → Phone demo: runs
- Phone demo → Phone class: creates, invokes (evidence: `main.py`)
- Phone subclasses → Inheritance Phone: inherits (evidence: `inheritance.py`)
