✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Dadas las siguientes clases:
class Father: def __init__(self): self._p: int = 3 self._c: int = self._p + 5 self._p += 1 def f(self) -> None: print(f"f in father p: {self._p} c: {self._c}", end='')
class Son(Father): def __init__(self, a: int): super().__init__() self._h: int = self._p + 1 + a def f(self) -> None: print(f"f in Son h: {self._h}, ", end='') super().f()Y la ejecución de la siguiente función:
def test1() -> None: son: Son = Son(2) son.f()
¿Cuál sería la salida por consola?
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!