← BYTES
Design Patterns·Starter·Ref: 17.1.5

What is encapsulation an example of in object-oriented design (as opposed to a Gang of Four pattern)?

Have a question about this video? Mention reference 17.1.5 when you contact us.

a.A design pattern from the Gang of Four book
b.A specific naming convention
c.A core OOP principle -- bundling data with the methods that operate on it and restricting direct access to internal state
d.A type of database index
Encapsulation is a foundational OOP principle (not itself a GoF pattern) -- it's the practice of hiding an object's internal state behind a controlled interface, which many design patterns build on top of.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES1715#DesignPatterns