Question: python , need help for this question Consider the following class: class Fruit : # Line 1 def getColor(self) : # Line 2 retval =
python , need help for this question
Consider the following class: class Fruit : # Line 1 def getColor(self) : # Line 2 retval = self._color # Line 3 return retval # Line 4 Which line(s) are part of the public interface for the class? Only line 1 Only line 2 Only lines 2 and 3 Only lines 3 and 4
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
