Skip to content

📝[Docs]: Add New Chapter Object-Oriented Programming (OOPs) in Python #678

@codewithdhruba01

Description

@codewithdhruba01

Is there an existing issue for this?

  • I have searched the existing issues

Issue Description

A new chapter on Object-Oriented Programming (OOPs) in Python is missing from the documentation. Since OOP is a key paradigm in Python, adding this section will help learners understand how to structure and organize their code more efficiently.

Suggested Change

Suggested Change

Add a new documentation page titled “OOPs in Python” under the Python section.
The chapter should include:

  1. Introduction to OOP

    • What is Object-Oriented Programming?
    • Advantages of OOP in Python.
  2. Classes and Objects

    • Defining a class
    • Creating objects
    • __init__ method
  3. Attributes and Methods

    • Instance variables vs class variables
    • Instance methods, class methods, static methods
  4. Encapsulation

    • Public, private, and protected members
  5. Inheritance

    • Single inheritance
    • Multiple inheritance
    • super() function
  6. Polymorphism

    • Method overriding
    • Operator overloading
  7. Abstraction

    • Abstract classes using abc module
  8. Examples and Practice Problems

Rationale

OOP is a fundamental concept in Python and is widely used in real-world applications. Without this, learners may struggle with advanced Python programming. Adding this chapter will:

  • Complete the core Python documentation.
  • Help users transition from procedural programming to OOP.
  • Provide practical examples of how OOP makes code modular, reusable, and scalable.

This issue can be labeled as:

  • documentation
  • hacktoberfest

Urgency

High

Record

  • I have read the Contributing Guidelines
  • Are you a GSSOC'25 contributor
  • I want to work on this issue

Metadata

Metadata

Labels

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions