Created
March 18, 2014 10:32
-
-
Save cleuton/9617519 to your computer and use it in GitHub Desktop.
LCOM4 = 1 sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class One { | |
int x; | |
int y; | |
void a() { | |
b(); | |
} | |
int b() { | |
return this.x; | |
} | |
int c() { | |
return this.x + this.y; | |
} | |
int d() { | |
return e(this.y); | |
} | |
int e(int number) { | |
return number * 2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This class have LCOM4 = 1, because the following members are linked:
a() - b() - x - c() - y - d - e