Computer Science - Object-Oriented Programming - Classes and objects - Class Design Quiz
8 questions. Q1: What is 'self' in a Python class? → The current instance of the class. Q2: What does __init__ do? → Initializes new objects when they're created. Q3: Given: class Dog: def __init__(self, name): self.name = name → How to create a Dog? → d = Dog('Rex'). Q4: What's wrong? class Cat: de