IDNLearn.com provides a seamless experience for finding the answers you need. Ask any question and get a detailed, reliable answer from our community of experts.
This Point class has only a working constructor. Implement it by using the initializer list. point.cpp 1 #include "point.h" 2 3 Point::Point() 4 { 5 // body is empty 6 } point.h 1 #ifndef POINT H 2 #define POINT H 3 4 class Point 5 { 6 public: 7 Point(); 8 private: 9 int m x; // 0,0 10 int my; 11 }; 1213 #endif
Sagot :
Thank you for joining our conversation. Don't hesitate to return anytime to find answers to your questions. Let's continue sharing knowledge and experiences! Your questions deserve precise answers. Thank you for visiting IDNLearn.com, and see you again soon for more helpful information.