CSC166 ยท 2078 ยท 5 marks
When class templates are useful? How can you define a class that can implement stack with integer as well as sack of strings? Illustrate with example.
When class templates are useful? How can you define a class that can implement stack with integer as well as sack of strings? Illustrate with example. [5]
Object Oriented ProgrammingChapter 7: Function Templates and Exception HandlingClass templates