Activity U2.PA3. Object-Oriented Programming in Dart
Activity U2.PA3. Object-Oriented Programming in Dart
Timing
In order to complete this activity, develop and deliver 3 out of 5 of the following
programs in Dart (the 3 ones you choose), by carefully following the instructions
and details given.
Tasks:
• Create a Book class with properties like title, author, and ISBN.
• Create a Library class that holds a list of Book objects and has methods to
addBook(), removeBook(), and findBook().
• Allow users to interact with the Library to perform these actions.
1
Desarrollo de Aplicaciones Multiplataforma (DAM)
2. Shopping Cart
Tasks:
• Create a Product class with properties like name, price, and quantity.
• Create a ShoppingCart class that holds a list of Product objects and has
methods to addProduct(), removeProduct(), and calculateTotal().
• Allow users to interact with the cart, adding products, removing them, and
viewing the total price.
3. Event Management
Tasks:
• Create an Event class with details like eventName, location, and date.
• Create an Attendee class with information like name, email, and phone.
• Create an EventManager class that holds a list of Event objects and has
methods to addEvent(), removeEvent(), and findEvent().
• Allow users to add attendees to specific events and view all attendees for an
event.
2
Desarrollo de Aplicaciones Multiplataforma (DAM)
Tasks:
Tasks:
• Create a Task class with properties like title, description, and status.
• Create a ToDoList class that holds a list of Task objects and has methods
to addTask(), removeTask(), and markTaskAsDone().
• Allow users to view all tasks, view only completed tasks, and view only
pending tasks
3
Desarrollo de Aplicaciones Multiplataforma (DAM)
Additional resources
The activity has additional information on the lesson slides and other links and
resources available at the online campus or right next. You can also ask for an
individual tutoring session should you have any trouble.
https://dart.dev/language/classes
https://dart.dev/language/class-modifiers