.. SPDX-License-Identifier: BSD-2-Clause
   Copyright 2013-2023, John McNamara, jmcnamara@cpan.org

.. _ex_inheritance1:

Example: Example of subclassing the Workbook and Worksheet classes
==================================================================

Example of how to subclass the Workbook and Worksheet objects.

We also override the default ``worksheet.write()`` method to show how that is
done.

.. image:: _images/inheritance1.png

.. literalinclude:: ../../../examples/inheritance1.py
