Skip to content

Instantly share code, notes, and snippets.

@vincentius15
Created March 9, 2019 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentius15/6f7caf2efc77da07ff84260fab60b1c4 to your computer and use it in GitHub Desktop.
Save vincentius15/6f7caf2efc77da07ff84260fab60b1c4 to your computer and use it in GitHub Desktop.
public class Main {
public static void main(String[] args) {
MovingObject object = new MovingObject(10, 10, 10 );
System.out.println(object.displacement());
System.out.println(object.currentMomentum());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment