1.ThenameVector2D.Caseisimportant!2.Twodoublesforstoringtheorderedcollectionofnumbers.Thecollectionrepresentseithera2-DpositionorthespeedalongthetwoaxesintheCartesianplan...
1. The name Vector2D. Case is important!
2. Two doubles for storing the ordered collection of numbers. The collection represents either a 2-Dposition or the speed along the two axes in the Cartesian plane.
3. A constructor that takes no arguments and sets the vector components to 0.
4. A constructor that takes in another Vector2D instance as an argument and assigns its x- and y-
components to be the same as the argument's.
5. A constructor that takes in two double arguments representing the vector's intended x- and y-
components. The x-component is the first argument, and the y-component is the second.
6. Two \getter" methods named getX and getY that return the vector's x- and y-components, res