let’s examine a more complex example. Assume you have the following reference (class) type that
Now assume that you want to contain a variable of this class type
within a value type named
Rectangle. To allow the caller to set the value of the inner ShapeInfo member variable, you also pro-
vide a custom constructor. Here is the complete definition of the Rectangle type:
struct Rectangle
{
Do'stlaringiz bilan baham: