Getter functions return the value of a private member: Setters let you validate input before changing state. You can reject negative ages or speeds that exceed limits. Without setters, users could assign invalid values directly if data were public.
Getters provide read access without exposing the variable itself, so you can change internal representation later without breaking user code. Understanding this concept deeply will help you write better code.
Practice with examples until the pattern becomes automatic. Review earlier sections if anything is unclear. Building on solid foundations makes advanced topics easier.