Ad
  • Custom User Avatar

    Thanks, I did mine like this and wasn't sure about it.

  • Custom User Avatar

    Note that although this works, this is not best practice as a new copy of the bark method will be created for each instance, rather than sharing a single instance of the bark method via inheritance. No inheritance is being utilized here. So it results in unnecessary extra memory usage.