Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Punkt {
- public:
- Punkt(); -> Standard CTOR m_y und m_x = 0
- Punkt(int x, int y){
- this.m_x = x;
- this.m_y = y;
- }; -> CTOR x -> m_x, y -> m_y
- setX(int x); setter x
- setY(int y);
- private:
- int m_x;
- int m_y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement