Day 6: Method Overriding After inheritance, the next important idea is method overriding. Sometimes a child class inherits a method from a parent class, but needs to give it a more specific behavior. That is exactly what overriding does. The child class keeps the same method name and parameters, but changes what the method actually does. This is one of the key ideas behind flexibility in OOP. #Java #OOP #Programming #SoftwareEngineering #ComputerScience #koofkee
Method Overriding in Java
More Relevant Posts
-
Mastering Object-Oriented Programming in C# 🚀 Covered all core OOP concepts with clear definitions and examples: Class, Object, Encapsulation, Abstraction, Inheritance & Polymorphism. #CSharp #OOP #DotNet #Programming #SoftwareDevelopment
To view or add a comment, sign in
-
Day 8: Abstraction As OOP grows, not every class needs to define every detail by itself. Sometimes we only want to describe the general idea and leave the exact behavior to the child classes. That is where abstraction comes in. In Java, an abstract class can define a common structure, while abstract methods allow child classes to provide the actual implementation. It helps us focus on what something should do without forcing every detail at the top level. #Java #OOP #Programming #SoftwareEngineering #ComputerScience #koofkee
To view or add a comment, sign in
-
-
Understanding Inheritance in OOP 👩💻 Inheritance is a concept in Object-Oriented Programming where one class (child class) gets properties and behaviors from another class (parent class).It helps in code reuse and makes the program more organized and easy to maintain. In the example above:🔹 Animal → Parent class🔹 Dog → Child class🔹 "extends" keyword is used to achieve inheritance This allows the child class to use both its own methods and the parent class methods. #OOPs #Java #Programming #Learning #CodingJourney #Inheritance
To view or add a comment, sign in
-
-
Building strong fundamentals, one concept at a time 💡 Understanding the true power of Java — from platform independence to portability — and how “Write Once, Run Anywhere” makes it a game-changer in the programming world. This journey is not just about coding, but about thinking, solving, and growing every day 🚀 #Java #TapAcademy #LearningJourney #Programming #FutureEngineer #TechSkills
To view or add a comment, sign in
-
-
Understanding OOP Concept: Association in Java Today I practiced one of the important Object-Oriented Programming concepts — Association. 🔹 Association defines the relationship between two classes 🔹 In this example, a Student is associated with a Teacher 🔹 Both objects can exist independently, but they are connected 💡 I implemented this using a simple Java program where: A Teacher teaches A Student studies with that Teacher 📚 This helped me understand how real-world relationships are represented in code. ✨ Output: Mr. Sharma is teaching Monika is studying with Mr. Sharma #Java #OOP #Programming #Coding #Learning #Students #DeveloperJourney
To view or add a comment, sign in
-
-
Day 1 of 30 — C# tip that cleaned up my codebase overnight 🧹 I used to write 5-line null checks. Then I found ?? and ??=. Saved me hours of boilerplate and made code reviews much smoother. Full breakdown is in the image below👇 Which of these do you already use — and what null-handling trick do you swear by? Drop it below 👇 #CSharp #DotNet #CleanCode #SoftwareEngineering #Programming
To view or add a comment, sign in
-
-
🎥 Student Grading System in Java In this video, I demonstrate a simple Java console application that calculates a student’s total marks, average, and grade based on subject-wise input. This project was developed as part of my learning journey with HexSoftware. 💻 Concepts used: Arrays & loops Conditional statements User input (Scanner) #Java #HexSoftware #Coding #Programming #StudentProject
To view or add a comment, sign in
-
🔁To My Java Full Stack Journey Instead of just learning loops, I tried solving real problems 👇 🔹 Rotate a number k times 🔹 Problem Statement: n = 12345, k = 2 Output → 45123 🔹 What I learned: Loops help solve real problems Logic building is important Practice improves thinking #JavaFullStack #CodingJourney #Programming #100DaysOfCode
To view or add a comment, sign in
-
-
Today I practiced a simple yet important concept of Object-Oriented Programming — Method Overriding. 🔹 Created a parent class (Shape) with a draw() method 🔹 Overrode the same method in child classes Circle and Rectangle 🔹 Demonstrated runtime polymorphism using a parent class reference 💡 This example clearly shows how Java decides which method to call at runtime based on the object type. 📌 Output: Drawing a Circle Drawing a Rectangle ✨ Concepts Covered: ✔ Inheritance ✔ Method Overriding ✔ Runtime Polymorphism #Java #OOP #Programming #Coding #MethodOverriding #Polymorphism #LearningJourney #SoftwareDevelopment #JavaDeveloper
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development