[text] class Fruit def initself data color unknown self.data data def setcolorself color str self.datacolor color def printdataself printfIm self.data.getcolor. orange Fruit orange.setcolororange orange.printdata Python Im orange apple Fruit apple.printdata Im orange Python