Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bagmita
    New Member
    • Jan 2007
    • 8

    #1

    Question

    Can a static method be accessed using the this operator?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by bagmita
    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.

    Comment

    • bagmita
      New Member
      • Jan 2007
      • 8

      #3
      Originally posted by r035198x
      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.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by bagmita
        Thannq!I tried out and its compiling fine.
        Part of the classes here describe the use of the static keyword.

        Comment

        Working...