From 92bcb539d18853b76a335febaf29197cd4625191 Mon Sep 17 00:00:00 2001 From: tridha21 Date: Sat, 21 Jun 2025 22:09:17 +0530 Subject: [PATCH] Added Java inheritance prompt Signed-off-by: tridha21 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 477bc01..6ad81b3 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,12 @@ This repository contains prompt chains for the following domains: ```text "After refactoring the code, use Keploy to run automated tests to check if any regressions have been introduced. Set up Keploy to verify that the refactored code behaves as expected, ensuring that all existing functionalities remain intact. The tests should include integration tests to verify that API endpoints, data handling, and user interactions still function properly. Ensure that Keploy is set to compare the current behavior with previously recorded test cases to detect any discrepancies or regressions. Return the Keploy test configuration, test cases, and results showing the behavior of the refactored code." ``` +* **Explain Java Inheritance with Code Example** + ```text + + "Explain the concept of inheritance in Java using a code example with a base class and a derived class. Describe how method overriding works, and return the sample code along with a step-by-step explanation of how inheritance is applied." + ``` + ---