![]() ![]() ![]() ![]() ![]() ![]() ![]() | Abstraction Mechanisms, Part 1 - slide 6 : 41 |
The name of a constructor is the same as the name of its class or struct.
Constructors in C++ are in many ways similar to constructors in C# and Java
![]() | Implementation of the Point class constructors. |
![]() | The Rectangle class. |
![]() | Implementation of the Rectangle class constructors. |
![]() | Sample Rectangle constructions. |
![]() | Methods in class Point and class Rectangle |