Hello All
Recently I go through the concept of virtual function in C++.
I have confusion with how many vitual pointer and virtual table for a single class are created?
And if the class is inheriing some other then what will be the situation?
yashsaxena
-1
Light Poster
Recommended Answers
Jump to PostI have confusion with how many vitual pointer and virtual table for a single class are created?
Each class has a virtual table and each object has a pointer to that table.
And if the class is inheriing some other then what will be the situation?
If there's no inheritance …
All 3 Replies
Narue
5,707
Bad Cop
Team Colleague
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
yashsaxena
-1
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.