Вы находитесь на странице: 1из 1

On my machine, a sint has the size of 4 Bytes.

According to stack overflow:

Member functions or pointers to them aren't stored in the object. (virtual


functions are typically called through a pointer stored in a table to which an
object has a single pointer to) This would be a huge waste of memory. They're
typically stored in a code memory section, and are known to the compiler. The
object (*this) is typically passed as an invisible parameter so the functions know
on which object to operate when they are called.

[source: https://stackoverflow.com/questions/15572411/where-are-member-functions-
stored-for-an-object]

Вам также может понравиться