Array - Assignment 1 | Infosys Virtual Pre-Training Program
Do with Rahul Do with Rahul
301 subscribers
137 views
1

 Published On Sep 1, 2024

Implement the class Teacher based on the class diagram and description given below.



Method Description

Teacher(String teacherName, String subject, double salary)

Initialize the values of all the instance variables appropriately with the values passed

Create a Tester class. Create 4 objects of Teacher class. Create an array of type Teacher store the created objects and display the details of the teachers.

show more

Share/Embed