Forum guidelines
AuthorQuestion
Virtual Table in C#
Posted on: 12 Jun 2009
What is the concept of V-Table in C#?

Regards,
Amit Kumar Dhania 
AuthorReply
Re: Virtual Table in C#
Posted on: 12 Jun 2009  
vtable, is a mechanism used in a programming language to support dynamic dispatch (or run-time method binding).

Suppose a program contains several classes in an inheritance hierarchy: a superclass, Cat, and two subclasses, HouseCat and Lion. Class Cat defines a virtual function named speak, so its subclasses may provide an appropriate implementation (i.e., either meow or roar).

When the program calls the speak method on a Cat pointer (which can point to a Cat class, or any subclass of Cat), the run-time environment must be able to determine which implementation to call, depending on the actual type of object that is pointed to.


MY BLOG ( www.codestructs.com ) | MY SITE

Kirtan
 Patel   BCA   MCA (SEMESTER-IV)  MINDCRACKER MVP WEB HACKER



Re: Virtual Table in C#
Posted on: 16 Jan 2011  

kirtan, you hsould have at least acknowledged where u copied your answer from.
 
http://en.wikipedia.org/wiki/Virtual_method_table

SPONSORED BY

Offshore Software and Database Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.