A Joomla template override is a customised version of a supported output file that replaces the standard presentation file.
Where overrides apply
Component and module overrides normally live in the active Joomla template’s html directory. They change output markup without replacing the extension’s original files. Alternative layouts and language-string overrides are related but separate mechanisms.
What happens during updates
Core or extension updates normally leave the template’s override file intact. However, the original Joomla layout can change, leaving an older override incompatible or missing an important fix. Compare versions and test the resulting output after updates.
Use a Joomla template override for maintainable presentation changes. It is not a universal replacement mechanism for every PHP class or a guarantee of permanent compatibility.