question archive Create another class “ErnployeeTest” with a static main function
Subject:Computer SciencePrice: Bought3
Create another class “ErnployeeTest” with a static main function. In this function: a. Create an object of class Degree with valid values b. Create an object of class Employee with Degree object created in (a) as its parameter. c. Add a function “toStringO” with the return type String to the class Degree which shows values of all the attribute values for a particular object d. Add a function “toStringO” with the return type String to the class Employee which shows values of all the attribute values for a particular object (including Degree details) e. Implicil'ly Call toStringO for the employee object created in part II in the “System.out.println” statement. o-------------u