Given: What should statement1, statement2, and statement3, be respectively, in order to
produce the result? Shape: constructor Square: foo Shape: foo
A.
Option D
B.
Option E
C.
Option A
D.
Option B
E.
Option C
Given: What should statement1, statement2, and statement3, be respectively, in order to
produce the result? Shape: constructor Square: foo Shape: foo
A.
Option D
B.
Option E
C.
Option A
D.
Option B
E.
Option C
Sorry, i think the correct answer should be A – option D. why is it D – option B ?
you ‘re right. “A. Option D is correct”.
Option B returns the output:
Shape constructor
square constructor
shape foo
square foo
c