1. Learn
  2. /
  3. Courses
  4. /
  5. Programming Paradigm Concepts

Connected

Exercise

Changing programming paradigms

As sometimes happens, you've started out on a project using one paradigm and now realized that it wasn't quite the right one for the task. You've currently got a simple procedural program for storing automobile sales information that is going to need to be converted to an object-oriented program so that it can be extended more easily.

Instructions 1/2

undefined XP
    1
    2
  • Start by filling out the missing pieces of the new Car class, which should have one public attribute, price.