Skip to main content

Chapter 25: Object-Oriented Programming - Part 1 Quiz

Test your understanding of object-oriented programming fundamentals, including classes, objects, constructors, encapsulation, and method types.

Chapter 25: Object-Oriented Programming - Part 1 Assessment

Question 1 of 15

You create two objects: `alice = BankAccount('Alice', 1000)` and `bob = BankAccount('Bob', 500)`. After calling `alice.deposit(200)`, what is bob's balance?