Template method pattern
Në shqip: Modeli i metodës shabllon
ShpjegimiSQ
Klasa prind përcakton hapat e një algoritmi (lexo → përpuno → ruaj) dhe klasat bija plotësojnë vetëm disa hapa. Shumë framework-e punojnë kështu: ti shkruan vetëm pjesët që ndryshojnë.
EnglishEN
A parent class defines the steps of an algorithm (read → process → save) and child classes fill in only some steps. Many frameworks work this way: you write only the parts that differ.
Si ta mendosh
Si një recetë bazë për kek ku zgjedh vetëm shijen.
Lexoje në anglisht
Like a basic cake recipe where you choose only the flavour.