Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Can you tell me the differnce between static method and instance method?

Can you tell me the differnce between static method and instance method?

Scheduled Pinned Locked Moved C#
performancequestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xibeifeijian
    wrote on last edited by
    #1

    Someone told me that the method needs memory ,is this true? In this way,does the static method can share their memories? Thanks!

    :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:¦¦?¦?¦¦ :^):rose::^):^):^):^)¦?????¦ :^):rose::^):^):^):^)¦¦?¦?¦¦ :^):rose::^):^):^):^)¦?????¦ :^):rose::rose::rose::rose::rose:¦¦?¦?¦¦ :^):^):^):^):^):^):^):^):^):^):^):^)

    D V 2 Replies Last reply
    0
    • X xibeifeijian

      Someone told me that the method needs memory ,is this true? In this way,does the static method can share their memories? Thanks!

      :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:¦¦?¦?¦¦ :^):rose::^):^):^):^)¦?????¦ :^):rose::^):^):^):^)¦¦?¦?¦¦ :^):rose::^):^):^):^)¦?????¦ :^):rose::rose::rose::rose::rose:¦¦?¦?¦¦ :^):^):^):^):^):^):^):^):^):^):^):^)

      D Offline
      D Offline
      dhans
      wrote on last edited by
      #2

      :^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose: :^):rose::^):^):^):^)***** :^):rose::^):^):^):^)***** :^):rose::^):^):^):^)***** :^):rose::rose::rose::rose::rose: :^):^):^):^):^):^):^):^):^):^):^)

      dhans

      1 Reply Last reply
      0
      • X xibeifeijian

        Someone told me that the method needs memory ,is this true? In this way,does the static method can share their memories? Thanks!

        :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:¦¦?¦?¦¦ :^):rose::^):^):^):^)¦?????¦ :^):rose::^):^):^):^)¦¦?¦?¦¦ :^):rose::^):^):^):^)¦?????¦ :^):rose::rose::rose::rose::rose:¦¦?¦?¦¦ :^):^):^):^):^):^):^):^):^):^):^):^)

        V Offline
        V Offline
        Vikram A Punathambekar
        wrote on last edited by
        #3

        Uhh, every method needs memory to execute. Having said that, a static method does not need memory to be allocated for an object (aka instance) to be executed; as opposed to a non-static method.

        Cheers, Vikram.


        "If a trend is truly global, then that trend ought to be visible across ANY subset of that data" - fat_boy

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups