Data hiding เป็นฟีเจอร์สำคัญของ Object Oriented Programming ที่ป้องกันไม่ให้ฟังก์ชันของโปรแกรมเข้าถึง internal representation ของ class type โดยตรง การจำกัดการเข้าถึง class members ระบุโดย labeled access modifiers: public, private, และ protected sections ภายใน class body Default access สำหรับ member