sarahy1836 sarahy1836
  • 30-07-2019
  • Computers and Technology
contestada

Can we declare top level classes as private or protected?

Respuesta :

aristeus aristeus
  • 02-08-2019

Answer and Explanation:

top level class can not be declare as private or protected. It is always public. If we declare a top level class as private then the compiler always complain that the  private is not allowed  and if we declare top level class as protected then compiler complain that modifier protection is not allowed here. so we can not declare top level class as private or protected

Answer Link

Otras preguntas

A coat regularly sells for $59.00. It is on sale for 20% off. What is the sale price of the coat?
What type of government does Myanmar/Burma have??
find a pair of square numbers which give a difference of 39
What's times what equals 116??
Write a modern question that means the same as: What would'st thou? Who hath dared to wound thee?
The remainder when x^3 - 11x + 10 is divided by (x+3) is A 52 B 16 C 4 D -24 I was doing a past paper and came across this,I know one (long) way of
1.) What role do stomata play in photosynthesis? 2.) Describe the process of pollination in angiosperms.
what is the solution to 3!
y= 3x - 10 y= 2x - 5
5x+7y=77 5x+3y=53 2x+5y=-1 X+2y=0 3x+6y=6 2x-3y=4