Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

Software and Development

Abstract

Also known as: Abstract class, Abstract method, Abstraction

1 min read Updated November 10, 2026

Definition In programming, a class or method that defines a structure but leaves the details to be filled in by other code.

What it is

An abstract class cannot be used directly; it acts as a template. For example, an abstract PaymentMethod might be extended by MpesaPayment and CardPayment. More broadly, abstraction means hiding detail behind a simpler interface.

Why it matters for your business

Good abstraction makes software easier to extend, such as adding a new payment option without rewriting checkout.

Real-world example

A developer added Airtel Money to a Kenyan shop by writing one new class that followed the existing abstract payment structure.

Design Corner tip

Ask developers to design systems so new payment methods, couriers or SMS providers can be added easily.

Learn more in these guides