The net force is obtained by adding the forces acting on the body even if they are not in the same line.
Net force acting on a body is zero, if two forces acting on it are:
Frictional force acts between two bodies even when they are not in contact.