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 / C++ / MFC
  4. virtual member

virtual member

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++comoop
4 Posts 2 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.
  • K Offline
    K Offline
    khomeyni
    wrote on last edited by
    #1

    in the name of god hello i have asked for this question in this tread but yet i cant get my answer: http://www.codeproject.com/Messages/3250568/Re-inheritance.aspx[^] indeed i want to use member virtualization .does c++ has something like virtual member? valhamdolelah.

    CPalliniC 1 Reply Last reply
    0
    • K khomeyni

      in the name of god hello i have asked for this question in this tread but yet i cant get my answer: http://www.codeproject.com/Messages/3250568/Re-inheritance.aspx[^] indeed i want to use member virtualization .does c++ has something like virtual member? valhamdolelah.

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      Hi,

      khomeyni wrote:

      indeed i want to use member virtualization .does c++ has something like virtual member?

      Virtualization (see, for instance [^]) has nothing to do with C++ virtual member functions. And yes, using C++ language, you may define virtual member functions: surprisingly enough, you may find this info in the documentation [^] (and in every C++ book). :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      K 1 Reply Last reply
      0
      • CPalliniC CPallini

        Hi,

        khomeyni wrote:

        indeed i want to use member virtualization .does c++ has something like virtual member?

        Virtualization (see, for instance [^]) has nothing to do with C++ virtual member functions. And yes, using C++ language, you may define virtual member functions: surprisingly enough, you may find this info in the documentation [^] (and in every C++ book). :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        K Offline
        K Offline
        khomeyni
        wrote on last edited by
        #3

        thanks but i know that there is a virtual member function but i dont want function i want member virtualization as virtual int x; in a class ,please see the link that i said. valhamdolelah.

        CPalliniC 1 Reply Last reply
        0
        • K khomeyni

          thanks but i know that there is a virtual member function but i dont want function i want member virtualization as virtual int x; in a class ,please see the link that i said. valhamdolelah.

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          khomeyni wrote:

          virtual int x;

          You know, that make no sense. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          In testa che avete, signor di Ceprano?

          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