-4

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.

tamil
  • 108
  • 1
  • 1
  • 7

2 Answers2

10
  1. protected - access modifier (in C# you have public, protected, private, internal)
  2. override - you override virtual method which was implemented scope above
  3. 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