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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 2CP
icon
Related questions
Question

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.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage