Exploring Basic Concepts
The shared ownership is tracked using a reference count property, which manages the count of shared…