-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGodClassViolation.java
More file actions
52 lines (45 loc) · 1.31 KB
/
GodClassViolation.java
File metadata and controls
52 lines (45 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
class Authenticator {
public void authenticateUser() {
System.out.println("Authenticating user...");
}
}
class DashboardLoader {
public void loadDashboard() {
System.out.println("Loading dashboard...");
}
}
class PaymentProcessor {
public void processPayments() {
System.out.println("Processing payments...");
}
}
class ReportGenerator {
public void generateReports() {
System.out.println("Generating reports...");
}
}
class Application {
private Authenticator authenticator;
private DashboardLoader dashboardLoader;
private PaymentProcessor paymentProcessor;
private ReportGenerator reportGenerator;
public Application() {
this.authenticator = new Authenticator();
this.dashboardLoader = new DashboardLoader();
this.paymentProcessor = new PaymentProcessor();
this.reportGenerator = new ReportGenerator();
}
public void run() {
System.out.println("Running application...");
authenticator.authenticateUser();
dashboardLoader.loadDashboard();
paymentProcessor.processPayments();
reportGenerator.generateReports();
}
}
public class GodClassResolved {
public static void main(String[] args) {
Application app = new Application();
app.run();
}
}