Can a class be declared as protected? Ans. The protected access modifier cannot be applied to class and interfaces. Methods, fields can be declared protected, however methods and fields in a interface cannot be declared protected. - Study24x7
Social learning Network
10 Oct 2023 09:55 AM study24x7 study24x7

Can a class be declared as protected? Ans. The protected access modifier cannot be applied to class and interfaces. Methods, fields can be declared protected, however methods and fields in a interface cannot be declared protected.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles