Create an abstract class `Appliance`. Define an abstract method `turn_on()`. Define a concrete method `plug_in()` that prints ‘Plugged into wall’. Subclass `Toaster` implementing `turn_on()` to print ‘Heating’. Call both methods on a `Toaster` instance.
None
Print the messages sequentially.
None
Plugged into wall
Heating
Abstract Base Classes can provide shared utility logic (concrete methods) alongside strict contracts (abstract methods).
import abc
class Appliance(abc.ABC):
# Define abstract turn_on and concrete plug_in
pass
class Toaster(Appliance):
# Implement turn_on
pass
if __name__ == '__main__':
t = Toaster()
t.plug_in()
t.turn_on()Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used