-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Labels
enhancementNew feature or requestNew feature or requesthacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Description
Is there an existing issue for this?
- I have searched the existing issues
Issue Description
A new documentation chapter titled "Constructor in Java" should be added under the Java Object-Oriented Programming (OOP) section. The chapter should explain:
- What is a constructor in Java
- Types of constructors (Default and Parameterized)
- Constructor overloading
- Usage of
this()
andsuper()
- Constructor chaining
- Java code examples with explanations
Suggested Change
Why is this important?
- The current documentation covers OOP concepts in Python, but for Java, the constructor topic is missing.
- This is a fundamental concept in Java and should be included to make the documentation more complete.
- It will help Java beginners understand how objects are initialized and how constructor overloading works.
Rationale
- Create a new markdown or doc file, e.g.,
constructor-in-java.md
, inside the Java OOP folder. - Add this chapter to the sidebar navigation for Java > OOP.
- Follow the existing documentation style and structure.
- Include at least 2β3 code examples showing different constructor use cases.
- Make sure the formatting is consistent and easy to read.
lebel - hacktoberfast
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
enhancementNew feature or requestNew feature or requesthacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard