Question: Midterm _ Spring _ 2 0 2 4 _ Exemple _ 4 _ . pdf . pdf Page 2 Midterm Winter 2 0 2 4

Midterm_Spring_2024_Exemple_4_.pdf.pdf
Page 2
Midterm Winter 2024 Ex
Q11)
public class Geometry { int area(int height, int width)
{
}
return height * width;
int volume(int height, int width, int depth)
{
int area = height * width;
} return area*depth;
}
The above code violates
a) YAGNI
b) DRY
c) Dependency Inversion
d) Liskov Substitution
e) Single Responsibility
Midterm _ Spring _ 2 0 2 4 _ Exemple _ 4 _ . pdf

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!