By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

Question

P: 8
Can a static method be accessed using the this operator?
Jan 10 '07 #1
Share this Question
Share on Google+
3 Replies


10K+
P: 13,264
Can a static method be accessed using the this operator?
Yes they can. Test it on a compiler. Non-static variables are the ones that are not available in static contexts.
Jan 10 '07 #2

P: 8
Yes they can. Test it on a compiler. Non-static variables are the ones that are not available in static contexts.
Thannq!I tried out and its compiling fine.
Jan 10 '07 #3

10K+
P: 13,264
Thannq!I tried out and its compiling fine.
Part of the classes here describe the use of the static keyword.
Jan 10 '07 #4

Post your reply

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