Hands-on practice for this lecture. Work through the exercises and quizzes to reinforce what you've learned.
Exercise 1 of 1
Practice the first step of Abstraction: identifying which concepts in a system are "Ideas" and which are "Actions".
CustomercalculateTax()OrderShipmentsendEmail()printReceipt()ProductaddToCart()Categorize each item as a Noun (Idea) or Verb (Action).
💡 Abstraction starts by finding the Nouns. If it's a thing the system stores info about, or something that causes action, it's an Idea (Noun).
Practical exercises to master the concepts.
Create a Car class. Attributes: model, color, speed. Behavior: accelerate(amount), brake(amount). Constraint: Speed should not exceed 200.