CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #1
    Join Date
    Feb 2006
    Posts
    69

    Polymorphism .. override

    When you override a virtual function of a base class .. do you have to call the base class method ? Always ?

    I've tested with Visual Studio .. as i type override .. it automatically call the base class virtual function.

    Why ???? is it like that ?

    I mean ... whatever the implementation of the virtual function of the base class .. that implementation will be called ... but why should i ? I want my own implementation to be used only ....

    Thanks,
    Last edited by GoDaddy; March 7th, 2006 at 06:32 PM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured