Encapsulation is keeping an object’s attributes behind its methods: users call the methods, which are the class’s interface, and leave the attributes alone. A class invariant is a property of the attributes that the constructor establishes and every method keeps.
Computer Science · المسرد
ما معنى Encapsulation, class invariant؟
يُعرف أيضًا باسم: encapsulation · class invariant