![Code that reads as follows:
class ClassA:
def __init__(self, val):
self.__val = val
class ClassB(ClassA):
def get_val(self):
return self.__val
obj = ClassB(15)
print(obj.get_val())](/files/5feea3b7a4e3d7be96058f18.png)
Instructor solution
Object-Oriented Programming (OOP) in Python presentation (pages 5-7, 12)
By Alec Kretch (Apr 2, 2021)
You may exit out of this review and return later without penalty.