Object-oriented programming (OOP)
A programming approach that builds software from objects, each combining data with the methods that act on it, created from classes and interacting through messages, with inheritance and polymorphism.
Object-oriented programming organises software around objects instead of around a sequence of procedures. A class is the template that defines what data its objects hold and which methods, the functions that operate on that data, they offer; each object is an instance of a class. Objects interact by sending messages, which in practice means one object calling a method on another. Java, C#, C++ and Python all support it.
A small vocabulary carries most of the weight. Inheritance lets a new class take on the data and methods of an existing class and extend them. Polymorphism lets the same message produce different behaviour depending on the class of the object that receives it. Hiding an object’s internal data behind its methods is also called encapsulation, a different idea from the network-layer encapsulation of Domain 4. Well designed classes show high cohesion and low coupling (cohesion and coupling). For security, data hiding limits what other code can reach, while reuse cuts both ways: a flaw in a widely shared class is inherited by every class built on it.
Exam relevance: a scenario is likely to describe an object-oriented behaviour and ask for its name, so candidates are expected to keep class, object, method, message, inheritance and polymorphism distinct, and not to confuse the programming sense of encapsulation with the networking one.