How escarrio/dcit-22-oop-project works
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 Phone demo · inheritance.py Phone subclasses · phone.py Phone class
Components 5
Other components
- Project runner
- Phone demo
main.py - Phone class
phone.py - Inheritance Phone
inheritance.py - Phone subclasses
inheritance.py
Connections 3
- Project runner → Phone demo: runs
- Phone demo → Phone class: creates, invokes
main.py - Phone subclasses → Inheritance Phone: inherits
inheritance.py