Question: In a car ( ) class's _ _ init _ _ method, if your data attribute is defined as following: self. _ _ brand =

In a car() class's __init__method, if your data attribute is defined as following:
self.__brand = brand
if
S1=car()
Which statement is correct?
Group of answer choices
You can use S1.brand='GMC' to set S1's brand name.
None is correct
You can use brand ='GMC' to set S1's brand name
You need to use a class method the set S1's brand name

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!