Write a program to input two vector coordinates from the base class named “Base”. Class “Derived” inherits all the properties of class “Base”. Class “Derived” must contain a function named add_vector() that add the two vectors input from the base class and finally display the result from the function display() that is friend to the base class.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here