Lecture 4 - Slide 8 : 40 |
We illustrate the use of overloaded constructors - using funny Point initializations
![]() | Funny implementations of the constructors. |
![]() | Use of constructors - with local variables of class type. |
![]() | Actual program output. |
![]() | An additional Point construction attempt - a trap. |
![]() | An additional Point construction attempt - with use of uniform default initialization. |