Question: 1. Write a program in Java using Bluej that performs the following tasks: i. Creates a class called Teachers having protected fields teachName, teachID, teachMobleNo
1. Write a program in Java using Bluej that performs the following tasks: i. Creates a class called Teachers having protected fields teachName, teachID, teachMobleNo and a class variable universityName to store the name of the university. ii. Write the constructors for Teachers class to initialize all the attributes(fields). iii. Write a method displayDetails() in Teachers to print all attributes of the object. iv. Create an object of Teachers class and call displayDetails()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
