If we do not override the pure virtual function in derived class, then derived class also becomes abstract class.
http://www.geeksforgeeks.org/pure-virtual-functions-and-abstract-classes/
Sizeof class with virtual function maintins a virtual pointer which increases sizeof class by pointer size - 8 bytes.
http://www.geeksforgeeks.org/pure-virtual-functions-and-abstract-classes/
Sizeof class with virtual function maintins a virtual pointer which increases sizeof class by pointer size - 8 bytes.
No comments:
Post a Comment