logo

Crowdly

Browser

Add to Chrome

FIT2099 Object oriented design and implementation - S1 2026

Looking for FIT2099 Object oriented design and implementation - S1 2026 test answers and solutions? Browse our comprehensive collection of verified answers for FIT2099 Object oriented design and implementation - S1 2026 at learning.monash.edu.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

The lecture slides on Dependency Injection list types or patterns for injecting dependencies into a client class. Which of the following is not one of the standard types of dependency injection explicitly listed in the course materials?

0%
0%
0%
100%
0%
View this question

A programmer writes a physics engine calculating the trajectory of a projectile. Throughout the physics class, the literal decimal 9.81 appears in over a dozen different mathematical formulas. According to the course guidelines, what is the primary architectural flaw with this code, and what is the optimal solution?

0%
0%
0%
0%
100%
View this question

A developer creates a Bird superclass with a fly() method. They then create an Ostrich subclass that extends Bird. Because ostriches cannot fly, the developer overrides the fly() method in the Ostrich class to immediately throw an UnsupportedOperationException. Which SOLID principle does this specific design directly violate?

0%
0%
100%
0%
0%
View this question

A retail application calculates shipping costs using a ShippingCalculator class. Inside this class, the developer uses a massive series of if-else statements checking if (package instanceof StandardBox) else if (package instanceof FragileCrate) to apply different mathematical formulas. Next month, the company plans to introduce a new RefrigeratedContainer package type. How should the developer refactor this code to satisfy the Open/Closed Principle?

0%
100%
0%
0%
0%
View this question

The lecture materials state that one of the primary reasons to use interfaces is to achieve "loose coupling" within a software architecture. If an OrderProcessor class and a PaymentGateway class are loosely coupled via an interface, what is the practical, everyday benefit of this design?

0%
0%
0%
0%
100%
View this question

A junior developer is programming a combat system for an RPG. They decide to manage player status effects using standard String variables, writing code like player.inflictStatus("Burned"); and checking it later with if (status.equals("burned")). According to the "Pre-class activities: enumeration" reading, what is the primary architectural danger of this approach, and how does a Java enum resolve it?

0%
0%
0%
0%
100%
View this question
A developer successfully implements polymorphism with the following line of code: Soldier mySoldier = new ArmouredSoldier(50); The ArmouredSoldier subclass contains a unique, public method declared as public void releaseArmour(). What happens if the developer attempts to execute the command mySoldier.releaseArmour(); on the next line?
0%
0%
0%
0%
100%
View this question
According to the Week 3 Java Collections reading, why is it highly recommended to declare a dynamic list variable using the List abstraction, for example: 

List<String> words = new ArrayList<>();

Rather than explicitly declaring it as the concrete class, for example:

ArrayList<String> words = new ArrayList<>();

0%
0%
100%
0%
0%
View this question
In a standard UML class diagram for a University System, you see a class box for Course. There is a solid line pointing from Course to another class called Professor, with an open arrowhead (>) at the Professor end. During the implementation phase, what is the standard way to translate this specific structural relationship into Java code within the Course class?
0%
0%
0%
100%
0%
View this question
A developer writes the following line of code inside a Course class to set a hard limit on student enrollments: 

public static final int MAX_STUDENTS = 200; 

What does the keywords static and final imply here?

0%
100%
0%
0%
0%
View this question

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome