Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Logical cohesion example
public class MathUtils {
public static double sin(double a) {
//method's body
return sin;
}
public static double cos(double a) {
//method's body
return sin;
}
public static double toDegrees(double rad) {
//method's body
return degrees;
}
public static double log10(double a) {
//method's body
return log10;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment