Basic Java Experiments
Basic Java Experiments
Problem Statement:
Create a class BankAccount with the following:
Add toString()
Create two account objects and assign values to data members using setters
Problem Statement:
Create a base class Employee with:
Method: displayDetails()
Override the displayDetails() method to include bonus and calculate total salary.
Create objects of both Employee and Manager and display their details.
Problem Statement:
Define an interface Payment with a method processPayment(double amount).