473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

meaning of protected override

sorry i want to know this <meaning of protected override>. and could you please tell me the meaning above
Apr 11 '13 #1
1 1422
Unkno
9
Its an access level modifier.protected override" is often used in template methods.
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
Apr 11 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ~toki | last post by:
How can i take the control of the key events in Class2 ? This is the code snipped that i'd tried (after try some others): public class Main : System.Windows.Forms.Form { protected virtual...
7
by: TT (Tom Tempelaere) | last post by:
Hi there The line marked *** doesn't compile. I wonder why the designers of C# decided to disallow this. Rationale? Are there plans to change this? This feature forces me to make things public...
2
by: Ryan Joseph So | last post by:
Hi, Is it possible to override an event replacing its EventArgs w/ my own event? like this is native event protected override void OnDropDownClosed(EventArgs e) { //code goes here... }
8
by: Keith Smith | last post by:
Could some one help me a little? I am trying to understand when/where you would ever want to use "protected override..." code such as this. How is this any different from creating a...
2
by: Steph. | last post by:
Does anybody where I can find the value of "Windows Messages" ? In the example below I would like to know the meaning of the "msg.Msg" parameter; if Msg = 134 what is that kind of message ? 134...
4
by: Jon | last post by:
Hi! I'm creating a custom Server Control which implements the method in the subject line (Protected override void CreateChildControls) In here I have the following code: LBL myLbl = new...
3
by: gordon | last post by:
can someone please explain what protected override void is ? what is it used for? thanks Doug
13
by: Ben Voigt | last post by:
Is there any way to have an overridden method which is not callable from the assembly overridding it? A contrived example (though I want this feature, my program has nothing to do with food...
7
by: =?Utf-8?B?cmFtbzk5NDE=?= | last post by:
Hi, Is there any way disable using "protected override void OnPaint(..." method out of the assembly. I create usercontrol and i do not want user adds extra codes OnPaint method for securtity...
3
BeemerBiker
by: BeemerBiker | last post by:
I want to use the C# example shown here Ok, I have done simple overrides before so I coded up protected override Auto... well, I didnt even get that far as intellisense made it clear that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.