/Object-Oriented-Programming

🧬 Here you'll find OOP exercises, exams, notes, and environment setup instructions relevant to the curriculum covered in class.

Primary LanguagePythonApache License 2.0Apache-2.0


🧬 Object Oriented Programming

Welcome to the Object Oriented Programming repository for the Analysis and Systems Development Program at Impacta Technology University - São Paulo - Brazil! Here you'll find exercises, exams, notes, and environment setup instructions relevant to the curriculum covered in class. Feel free to explore, contribute, and learn together with your peers.

😎 Happy coding!

< made with vibe, frequency & joy /> 🪬

👨‍💻 An Example of OOP Code

The code below provides a simple framework for managing different types of bank accounts, including savings and investment accounts, and allows for basic operations like deposits and withdrawals. The InvestmentAccount class extends the functionality of the base BankAccount class to handle specific investment-related actions.
Bank_Accounts_Framework

🛠️ Additional options available in the development environment

  • Command to Install Flake8 in Your Development Environment

    py -m pip install flake8              # Windows
    
    python3 -m pip install flake8         # Linux and MacOS
    
  • Command to Install pep8-naming in Your Development Environment

    py -m pip install pep8-naming         # Windows
    
    python3 -m pip install pep8-naming    # Linux and MacOS
    
  • Set of Commands Adding Options to a JSON Configuration File

    {
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true,
    "editor.renderWhitespace": "boundary",
    }
    

🖥️ Creating a Virtual Environment on IOS and Ubintu - pip and venv

These commands help you manage Python dependencies by creating a virtual environment, saving installed packages to a file, and then installing those packages when needed.
  • List installed Python packages and their versions:

     pip freeze
    
  • Save the list of installed packages to a requirements.txt file:

     pip freeze > requirements.txt
    
  • Deactivate the current virtual environment:

     deactivate
    
  • Create a new virtual environment named .venv:

     python3 -m venv .venv
    
  • Activate the newly created virtual environment:

     source .venv/bin/activate
    
  • Install packages listed in the requirements.txt file:

     pip install -r requirements.txt
    

👨‍💻 Code for GitHub Actions

Code for a GitHub Actions workflow. It defines how to build and test a Python project.
Screenshot 2023-09-27 at 02 28 33

@property class and its argunents

This docstring provides an explanation of the property class and its constructor, including the optional arguments fget, fset, fdel, and doc, along with descriptions of what each argument does.
Screenshot 2023-09-27 at 02 31 23

🐍 OPP Codes

📚 Support Material Object Oriented Programming in Python