Question: Midterm _ Spring _ 2 0 2 4 _ Exemple _ 4 _ . pdf . pdf Page 2 Midterm Winter 2 0 2 4
MidtermSpringExemplepdfpdf
Page
Midterm Winter Ex
Q
public class Geometry int areaint height, int width
return height width;
int volumeint height, int width, int depth
int area height width;
return areadepth;
The above code violates
a YAGNI
b DRY
c Dependency Inversion
d Liskov Substitution
e Single Responsibility
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
