protected override?

  • Thread starter Thread starter gordon
  • Start date Start date
G

gordon

can someone please explain what protected override void is ?

what is it used for?

thanks
Doug
 
can someone please explain what protected override void is ?
You are a C# programmer, so I guess you already knew what they are.
what is it used for?
"protected override" is often used in template methods.

Thi
 
Protected is the access modifier. The protected modifier denotes that a
member of a class is accessibly only within that class and all derived
classes.

override is a keyword that denotes that the method overrides another
method

void is the return type (in this case, the method returns nothing)
 
Hi,

you can put modifier before the method name. these modifiers controls
things like access, return type, etc

protected means that that the method is visible inside the class and for
theirs derivers, nobody else can use it..
override means that it will change the implementation of a previously
defined method with the same name and parameters
void means that it returns nothing.


Check the C# language definition or any book that explains the C# language


cheers,
 
Back
Top