What is the result when this program is executed?

View the exhibit: What is the result when this program is executed?

View the exhibit: What is the result when this program is executed?

A.
Bob’s Name: Bob

B.
Bob’s name

C.
Bob’s Name: Jian

D.
Nothing prints



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Igli Myrta

Igli Myrta

The answers are wrong

This are the right answers:

A.
Shape: constructor
Square: constructor
Square: foo
Shape: foo

B.
Shape: constructor
Square: constructor
Shape: foo
Square: foo

C.
Shape: constructor
Shape: foo
Square: foo

D.
Shape: constructor
Shape: foo
Shape: foo