In order to use the functionality of the base class...
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: In order to use the functionality of the base class...

  1. #1
    Join Date
    Dec 2010
    Posts
    589

    In order to use the functionality of the base class...

    Do all members of the base class need to be declared virtual?
    Thanks
    Jack

  2. #2
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,261

    Re: In order to use the functionality of the base class...

    No.
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

  3. #3
    Join Date
    Dec 2010
    Posts
    589

    Re: In order to use the functionality of the base class...

    My memory wears out, I got it, polymorphism.... lazy brain of mine

  4. #4
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    3,827

    Re: In order to use the functionality of the base class...

    members of a (base) class only need to be virtual if you plan to use a base pointer/reference and expect the call to end up in the most derived implementation rather than the base pointer implementation.

  5. #5
    Join Date
    May 2013
    Posts
    12

    Re: In order to use the functionality of the base class...

    Thanks for sharing a great post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center