Create a class Person with attributes name and age, and a method display(). Derive a class Employee from Person with additional attributes employeeId…
BCA Object Oriented Programming in Java · 2025 · Solved Question with Answer
Create a class Person with attributes name and age, and a method display(). Derive a class Employee from Person with additional attributes employeeId and salary. Use constructors and override the display() method to include all details.
