ws2_p5. possible constructors for initialization and copying. By default (x-y%3Dz%3D0), at the time of Create a class for handling 3D coordinates (x,y,z) of type integer. Write down all initialization the user may omit any axis, should be considered as 0. Write the member functions to perform the addition and subtraction operations between two objects. (Use the pointers to handle the objects and use references while passing them between functions).

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter12: Points, Classes, Virtual Functions And Abstract Classes
Section: Chapter Questions
Problem 33SA
icon
Related questions
Question
Create a class for handling 3D coordinates (x,y,z) of type integer. Write down all
ws2_p5.
possible constructors for initialization and copying. By default (x-y%3Dz%3D0), at the time of
initialization the user may omit any axis, should be considered as 0. Write the member functions
to perform the addition and subtraction operations between two objects. (Use the pointers to
handle the objects and use references while passing them between functions).
Transcribed Image Text:Create a class for handling 3D coordinates (x,y,z) of type integer. Write down all ws2_p5. possible constructors for initialization and copying. By default (x-y%3Dz%3D0), at the time of initialization the user may omit any axis, should be considered as 0. Write the member functions to perform the addition and subtraction operations between two objects. (Use the pointers to handle the objects and use references while passing them between functions).
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning