Calling Virtual Method of a Class Base to Base Class(couldbedone.blogspot.com)

submitted by crpietschmanncrpietschmann(11.3k) 4 years, 6 months ago

You will probably never really need to do this, but if it happens, here is how it can be accomplished. So, assume you have two classes Base and Derived. The Base class introduces a virtual method named Test. The Derived class overrides this method. Now, as I said in very rare circumstances, you may need to derive another class from the Derived class and in the overridden method Test call original version of Test method. By original I mean implementation provided by the Base class.

add a comment |category: |Views: 2

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story