java programming Write a class named HiddenClass under apackage namedumbrella.HiddenClass contains a variable named hiddenVariablewhich is a String. This variable’saccess specifier cannot be public.HiddenClass cannot contain any methods.From the main function (which is in another classthat you have named according to yourwish inside the umbrella package), create an objectof HiddenClass and set the value ofhiddenVariable to your own first name.Now, write another class named Request in anotherpackage namedacademy. Set thevalue of hiddenVar to your own last name. (You canwrite any method or use theconstructor for performing this.)Write the code snippet in a way that does not containany compiler errors. Your answermust include only these 3 classes (along with packagenames) and their internal content(methods/attributes/constructor). Don’t write anymore classes.
java programming
Write a class named HiddenClass under apackage namedumbrella.HiddenClass contains a variable named hiddenVariablewhich is a String. This variable’saccess specifier cannot be public.HiddenClass cannot contain any methods.From the main function (which is in another classthat you have named according to yourwish inside the umbrella package), create an objectof HiddenClass and set the value ofhiddenVariable to your own first name.Now, write another class named Request in anotherpackage namedacademy. Set thevalue of hiddenVar to your own last name. (You canwrite any method or use theconstructor for performing this.)Write the code snippet in a way that does not containany compiler errors. Your answermust include only these 3 classes (along with packagenames) and their internal content(methods/attributes/constructor). Don’t write anymore classes.
Step by step
Solved in 2 steps