As we know Prototypes allow us to easily define methods to all instances of a particular object and method is applied to the prototype, so it is only stored in the memory once. we can define prototype in many ways.
So I want to ask which methods is more suitable if we define prototype in header or any other place.
Does prototype defining methods depends upon our need & requirement?.
So I want to ask which methods is more suitable if we define prototype in header or any other place.
Does prototype defining methods depends upon our need & requirement?.