Tower defense (OOP4Fun Book)

TLA details

Name
Task: Overload constructors in class Direction
Description

In this session an overloaded constructor is defined in the Direction class. A non-parameterized constructor is added, and within its body, the parameterized constructor is invoked with the argument rotation set to 0. The code in the Arena class should be updated accordingly, using the non-parameterized version of the Direction class constructor where possible.

Learning type
Practice
Description Learning through practice enables the learner to adapt their actions to the task goal, and use the feedback to improve their next action. Feedback may come from self-reflection, from peers, from the teacher, or from the activity itself.
Example usage Practising exercises, labs and virtual labs, field trips, simulations, using models, doing practice-based projects,…
Workload
25
Activity delivery
Online
On-site
Hybrid
Synchronous
Asynchronous
Teacher-present
Teacher not present
Collaboration
Work in groups
Feedback
Feedback provider
Teacher
Automated
Peer
Other

Assessment