![]() |
CITS2002 Systems Programming |
← prev | next → | ![]() |
![]() |
|||
Multiple contructors using function overloadingPreviously we saw that C11 permits a single function 'name' to have multiple type-signatures - multiple functions with same name, but with different sets of parameters.The same concept applies to class constructors - a class may have multiple constructors (each named after the class), that permits an instance of the class to be created and initialised in different ways:
CITS2002 Systems Programming, Lecture 23, p9, 17th October 2023.
|