I am learning about xamarin in basic stage. All the function calls are done by 'protected override void'. So that anyone please help what is the use of it. How it differs from public void.
Asked
Active
Viewed 2.2k times
2 Answers
10
- protected - access modifier (in C# you have public, protected, private, internal)
- override - you override virtual method which was implemented scope above
- void - return type of your method

Fka
- 6,044
- 5
- 42
- 60
3
public - everyone can access this method. protected - only inherited classes can access this method.

dlxeon
- 1,932
- 1
- 11
- 14