Suppose you have written JavaScript constructors for two obj…
Suppose you have written JavaScript constructors for two object classes called ClassA and ClassB and then the statement ClassA.prototype = new ClassB();. ClassB can use the value returned by one of ClassA’s methods in one of its own methods because ClassB inherits all the properties and methods of ClassA in this situation.