Basically, I have not been able to find much information about this on the internet, but I understand that the basic class instantiation is: -> operator new() -> allocates memory from somewhere -> constructor -> assigns values to "data types"
Now, what I want to know is, how does C++ allocate methods/functions of the class rather than its members. According to my web research, this cannot happen in new() because it is only allocating raw memory, and as far as I have gotten, I have not quite been able to figure out how this could be done in the constructor with functions (rather than function pointers). Also, I assume that because of the existence of the keyword static, without this keyword, it is allocated as part of the parent class. How and where does this happen?
Also, if the functions are included in the memory of the class, does the function sizeof() give the size of just the class and its members, or does it also include the related functions?