Qt Group interview question

Do methods in a class use memory?