Skip to content

Darshan-KC/Python_OOP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python OOP

Overview

This repository contains a collection of Python programs demonstrating Object-Oriented Programming (OOP) concepts in Python. The programs cover various OOP principles such as inheritance, encapsulation, polymorphism, and more.

Features

  • Inheritance: Examples showing how to derive classes from base classes.
  • Encapsulation: Demonstrations of private and protected members and methods.
  • Polymorphism: Examples of method overloading and overriding.
  • Abstraction: Use of abstract classes and methods.
  • Additional Python Features: Other useful Python features that complement OOP, such as decorators and context managers.

Getting Started

To get started with the code in this repository:

  1. Clone the repository:

    git clone https://github.com/yourusername/python_oop.git
    cd python_oop
  2. Explore the Code:

    • Navigate through the various Python files to understand different OOP concepts.
    • Each file is named according to the concept it demonstrates (e.g., class_method.py, encapsulation.py).

Contributing

Contributions are welcome! If you find any errors or have suggestions for improvements, feel free to open an issue or create a pull request.

  1. Fork the repository
  2. Create a new branch: git checkout -b feature-branch
  3. Make your changes and commit: git commit -m 'Add some feature'
  4. Push to the branch: git push origin feature-branch
  5. **Create a pull request`

About

Learning Python OOP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages