Q1
|
A. Just add printAuthor in the Book class prototype, and then all objects created from Book will have the function. If we put the method in every instantiated object, it would be too cumbersome to do it, while having it on prototype guarantees that the method is always created.
|