Discussion :: Declarations and Access Control - Pointing out the correct statements (Q.No.5)
|Meme said: (Sep 16, 2014)|
|ChildUtil is a subclass of ParentUtil, therefore he can access the protected members!|
|Vaibhav said: (Jun 12, 2016)|
|Why not The code compiles and runs, with output this 420 parent 420?|
|Manoj said: (Nov 24, 2017)|
|When i run the program i got the output "this 420 parent 420" i.e. option A.
I have not removed the any line.
|Vasavisreenivas said: (Feb 8, 2018)|
|Actually, the option is A because I got the result as same as option A.|
|Anil said: (Oct 20, 2019)|
|The code will compile and run.|
|Kalyani said: (May 9, 2021)|
|Can anyone explain the exact answer?|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.