Question: Moving to another question will save this response. Question 7 of 2 0 uestion 7 2 points Save Answer Assume that we have defined a

Moving to another question will save this response.
Question 7 of 20
uestion 7
2 points
Save Answer
Assume that we have defined a class called House that has attributes of owner's name, address, number of bedrooms, and number of baths. The attribute names in the class definition are name, address, numBRs and numBAs. numBRs and numBAs are integers. The other attributes are strings (characters). What code will create a House object with owner name of "Mary Smith", address of "6 Stable Way", numBRs of 4, and numBAs of 2? The object will be assigned the variable name h1.
h1= House('Mary Smith', '6 Stable Way', 4,2)
new House h1= House('Mary Smith', '6 Stable Way', 4,2)
House('Mary Smith', '6 Stable Way', 4,2)
House 'Mary Smith', '5 Stable Way', 4,2)
None of the listed answers is correct
Moving to another question will save this response.
Question 7 of 20
 Moving to another question will save this response. Question 7 of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!