Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update inheritance.md #126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

competitiveblood
Copy link
Contributor

fixed #122

INHERITANCE IN JAVA

Inheritance in Java is a fundamental concept that allows a new class (subclass or child class) to inherit properties and behaviors from an existing class (superclass or parent class). This promotes code reuse and establishes an "is-a" relationship between classes. Subclasses can access the attributes and methods of their superclass, and they can also extend and override those inherited members. Inheritance helps create a hierarchy of classes, making code more organized and efficient. It's a key pillar of object-oriented programming, enabling the building of more specialized classes on top of more general ones, facilitating modularity and maintaining code consistency.

Signed-off-by: Shivangi Singh <122040215+competitiveblood@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Want to complete Inheritance section
1 participant