Question: C++ code Instructions Design a 2D vector class called Vec. This class should contain two float data members x, and y, a default constructor, a
C++ code


Instructions Design a 2D vector class called Vec. This class should contain two float data members x, and y, a default constructor, a constructor from two coordinates, an add method, and appropriate getters and setters. Your Vec class should allow the following vectors.cpp file to run without generating any error messages
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
