a) Briefly describe what is meant by the term ‘singleton class’ and describe a realworld practical scenario that is well-suited to the use of a singleton class. 


b) Write a code fragment that demonstrates how is-a and has-a inter-class relationships are implemented using real-world practical examples.

Leave an answer

Sorry, you do not have permission to answer to this question .