= Object-oriented programming
{wiki}
<Object-oriented programming> organizes <software> around objects with associated state and operations. A method call requests behaviour through an object's interface; encapsulation can hide its internal representation. In class-based systems, a <software class> describes common structure and behaviour, while polymorphism allows callers to use a shared interface across different implementations. For example, circle and rectangle objects can both implement an area operation using different formulas. Inheritance is one mechanism for reuse and specialization, not a guarantee of correct substitution. Some object systems use prototypes rather than classes.
// Target: computer-science.bigb
Back to article page