Contact: aviboots(AT)netvision.net.il
41,163 questions
53,655 answers
573 users
#include <iostream> class Example { private: int x, y; public: Example(int x, int y) { this->x = x; this->y = y; } void Print() const { std::cout << x << ", " << y << "\n"; } }; int main() { Example ex(234, 9870); ex.Print(); } /* run: 234, 9870 */