community.borland.com

Article #15463: SIZEOF OBJECTS CONSTRUCTOR

 Technical Notes Database

TN463D.txt   SIZEOF OBJECTS CONSTRUCTOR
Category   :Pascal
Platform    :All
Product    :Turbo Pascal  5.5

Description:
Q. Why does Sizeof(MyObject) return a size 2 bytes larger than I
   expect when no virtual methods are used?
A. By placing a constructor in your object, you're making the
   object virtual.


Reference:


7/16/98 4:35:32 PM
 

Last Modified: 01-SEP-99