Java quiz, please answer the two questions below for me! Make sure you have full
ID: 3595271 • Letter: J
Question
Java quiz, please answer the two questions below for me! Make sure you have full explanation and give me the correct answers! thank you!
0/ 4 pts incorrectQuestion 52 Which of the following statements about an inner class is true? An inner class may not be declared within a method of the enclosing scope. An inner class may only be declared within a method of the enclosing scope. An inner class can access variables from the enclosing scope only if they are passed as constructor or method parameters. The methods of an inner class can access variables declared in the enclosing scopeExplanation / Answer
Question 52:
option D :the methods of inner class can access variables within the enclosing scope.
they can even access variables in the outer class.
Question 45 :
option D : a subclass extends a super class
where super class is the parent and subclass is the child which has extra properties in addition to that in the parent.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.