ques1.if a class without any variable is declared then how mouch space it takes in memory?
ques2.if a class with some variable is declared then how mouch space it takes in memory?
Functions don't take any memory. However, virtual functions take some memory. Generally dynamic implementation might use some extra memory. Use sizeof() to get the actual size of the object (excluding the size of dynamically allocated memory in that object).