Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Yes, it's correct. An object's methods aren't things that exist in memory with the object. They're in a completely separate section of memory, and a method exists exactly once regardless of whethe...
Answer
#1: Initial revision
Yes, it's correct. An object's methods aren't things that exist in memory with the object. They're in a completely separate section of memory, and a method exists exactly once regardless of whether you have one object, a million objects or zero objects. You can even go so far as to `delete this` and the world doesn't explode. See https://isocpp.org/wiki/faq/freestore-mgmt#delete-this (Obviously, I wouldn't actually do this without extremely good reason since it's very easy to make mistakes and completely screw things up, but that's not what you asked.)