473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Vtables

Will there be seperate Vtable for base class and derived class or same
vtable will be shared by both?(virtual function being defined in both)

Oct 12 '07 #1
1 1371
vi********************@gmail.com wrote:
Will there be seperate Vtable for base class and derived class or same
vtable will be shared by both?(virtual function being defined in both)
I expect that one or other of those possibilities will be the case, but
not in C. You may want to ask in comp.lang.c++
Oct 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: vijay | last post by:
I have a doubt with size of classed with virtual functions I have declared A,A1,A2 ,B , C, D some classes with no varaibles but a vitual function each, The size of A is as expected 4 bytes with...
2
by: James FitzGerald | last post by:
I am building a small memory model DOS exe (does not actually run in dos but in a custom 16bit environment). For complex reasons I am not allowed to have any relocatable items. I have run into...
8
by: schoenfeld1 | last post by:
I'm trying to workaround a microsoft bug by overring one of their methods without subclassing. I need to basically change a Control's vtable entry for the method PaintBackground method and point...
7
by: ZenRhapsody | last post by:
Are ALL methods in subclasses implemented in C# with vtables and virtual functions? I know I could test this myself, but I'm still using Express edition of 2.0, so I cannot view the optimized...
1
by: Rene | last post by:
I keep reading about this vTables and it's killing me because I am not sure what they are. I have a feeling that vTables are used when you override virtual methods or properties but I really have...
2
by: first10 | last post by:
Hello, Apologies for being slightly off topic - but this group seems the best fit for the question. How does the compiler handle the problem of not knowing which address a DLL will be loaded...
4
by: Subhransu Sahoo | last post by:
Hi All, Can anyone tell me why the output of the following program is fx1 fx2 ? #include <iostream> using namespace std; class IX { public:
3
by: Chameleon | last post by:
I read "thinking in C++" but I don't understand how the pointers stored in vtable of SeekableInputOutputStream. Can you explain me the order please? Thanks a lot!...
26
by: Chris Becke | last post by:
Given an interface (in the c++ sense, nothing more than a struct containing pure virtual methods) struct Iv1 { virtual method0()=0; }; And a class that implements the interface class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.