How do i do vectors

how to calculate vectors and how to use them?
do i need to create a class called vectors or?

i know you do something with x and y of an object
and calculate it to get the diraction its moving and stuff
but how

object 1
x
y
dx
dy

now what? how to make the phycics

sy bad english