{"id":531,"date":"2026-11-10T04:46:27","date_gmt":"2026-11-10T04:46:27","guid":{"rendered":"https:\/\/wiki.designcorner.co.ke\/?dc_term=abstract"},"modified":"2026-11-10T08:03:20","modified_gmt":"2026-11-10T08:03:20","slug":"abstract","status":"publish","type":"dc_term","link":"https:\/\/wiki.designcorner.co.ke\/?dc_term=abstract","title":{"rendered":"Abstract"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What it is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why it matters for your business<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Good abstraction makes software easier to extend, such as adding a new payment option without rewriting checkout.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-world example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A developer added Airtel Money to a Kenyan shop by writing one new class that followed the existing abstract payment structure.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Corner tip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ask developers to design systems so new payment methods, couriers or SMS providers can be added easily.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>In programming, a class or method that defines a structure but leaves the details to be filled in by other code.<\/p>\n","protected":false},"featured_media":0,"template":"","dc_letter":[6],"dc_topic":[34],"class_list":["post-531","dc_term","type-dc_term","status-publish","hentry","dc_letter-a","dc_topic-software-and-development"],"_links":{"self":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term"}],"about":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/types\/dc_term"}],"version-history":[{"count":1,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/531\/revisions"}],"predecessor-version":[{"id":715,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/531\/revisions\/715"}],"wp:attachment":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=531"}],"wp:term":[{"taxonomy":"dc_letter","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_letter&post=531"},{"taxonomy":"dc_topic","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_topic&post=531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}