-
Notifications
You must be signed in to change notification settings - Fork 114
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationhacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Milestone
Description
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:
-
Introduction to OOP
- What is Object-Oriented Programming?
- Advantages of OOP in Python.
-
Classes and Objects
- Defining a class
- Creating objects
__init__
method
-
Attributes and Methods
- Instance variables vs class variables
- Instance methods, class methods, static methods
-
Encapsulation
- Public, private, and protected members
-
Inheritance
- Single inheritance
- Multiple inheritance
super()
function
-
Polymorphism
- Method overriding
- Operator overloading
-
Abstraction
- Abstract classes using
abc
module
- Abstract classes using
-
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
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationhacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Type
Projects
Status
Done