Consider the following program: class Dinosaur : def __init…
Consider the following program: class Dinosaur : def __init__(self, name: str = “dinosaur”) -> None: self._name = name def display(self) -> None: print(self._name) class Triceratops(Dinosaur) : def __init__(self) -> None: super().__init__(“triceratops”) x = Dinosaur() x.display() What is displayed when it executes?
Read Details