access-modifiers tag

3 questions


1 answers
93 views
0
How do I use functions like final in java in C#?

How do I use functions like final in java in C#?


1 answers
92 views
0
I want to know the difference between public default protected private!

Is there a rule like how to use public default when inheriting classes or interfaces?

2 years ago

1 answers
90 views
0
An Understanding of Protected Access Control Modifiers in Java

There is a class called A in package1 and a class called C in package2. Class C is a subclass of A.A defined the instance field protectedInt:protected int protectedInt = 1;Class A:package package1;pub...


© 2024 OneMinuteCode. All rights reserved.