Exforsys

Online Training

What is the difference

This is a discussion on What is the difference within the C and C++ forums, part of the Programming Talk category; I want to know the differences between virtual functions and non-virtual C++ member function? Someone brief me on this?...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2007, 04:33 PM
Senior Member
 
Join Date: Apr 2006
Posts: 141
Adrian is on a distinguished road
Question What is the difference

I want to know the differences between virtual functions and non-virtual C++ member function? Someone brief me on this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-25-2007, 11:59 AM
Senior Member
 
Join Date: Apr 2006
Posts: 125
ashlee is on a distinguished road
Virtual function is a mechanism to implement the concept of Polymorphism an ability to give different meanings to one function. The main difference between a non-virtual c++ member function and a virtual member function is the way both gets resolved. A non-virtual c++ member function gets resolved during compile time also called as static binding but in contrast Virtual Functions are resolved during run-time also called as dynamic binding.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Highlight the Difference priyaraji Oracle Database 2 12-14-2006 06:11 AM
difference between winrunner 7./7.6 zecar Software Testing 1 11-13-2006 03:32 AM
Linux vs. Windows web Hosting, does it make a difference? sanereddy Unix Articles and Tutorials 7 04-23-2006 02:39 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 06-01-2004 07:00 AM
Smalltalk FAQ (v.1.0) Vikas Malik Tech FAQ 0 04-17-2004 08:27 AM


All times are GMT -4. The time now is 12:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.