• Cours
  • Compilateur de code
  • Discuter
  • Tarification
  • Équipes
Menu
+ 1

why protected member var is visible?

why main method can access protected member var? isn't the ptotected can only be visible by self and sub-class? https://code.sololearn.com/cB52QHCu0B7V/?ref=app

access-modifiers
18th Sep 2017, 3:14 AM
frluo
frluo - avatar
1 Réponse

Vous avez souvent des questions comme celle-ci ?

Apprenez de manière plus efficace, gratuitement :

  • Introduction à Python

    7.1M apprenants

  • Introduction à Java

    4.7M apprenants

  • Introduction à C

    1.5M apprenants

  • Introduction à HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
Hi help me I am new
2 Votes
My codebits section is full of deleted codes
11 Votes
Why are there like 10 community-made lessons?
0 Votes
How do I solve all test cases for popsicles problem?https://www.sololearn.com/coach/3?ref=app
0 Votes
Why so many mathematical questions in challenges?
0 Votes
Where can I learn c#
0 Votes
Where did mess up....
1 Votes
DBA for finalist university student projects
0 Votes
best language if i want to learn about AI
0 Votes
New learner
0 Votes