The Source class is responsible for managing the source.
Returns the unique identifier associated with the source.
Returns the name assigned to the source.
Returns the type of the source.
Releases resources associated with the source. Cleaning up resources when the source is no longer needed contributes to efficient resource management.
Returns the name of the source in the form of a string.