Advertisement
klippa

Сокрытие деталей релизации класса

Oct 26th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. class Employee {
  2. public:
  3.     // ...
  4.     Employee( ... );
  5.     // ...
  6.     FullName GetName() const;
  7.     String GetAddress() const;
  8.     // ...
  9. private:
  10.     // Детали реализации скрыты при помощи указателя.
  11.     EmployeeImplementation *m_implementation;
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement