As per my knowledge functions by themselves don’t take up any memory, it is only when a function is called that all its local variables are assigned memory.
But towards the end of the getters and setters lecture, the instructor claimed that all the member functions reside in the same memory and don’t get duplicated for every instance of the class.
Also in one of the previous lectures it was said that classes by themselves don’t take up any memory.
All these things clearly contradict each other,
so… which of these are true ?