Solved

Look at the Following Code Sample: Struct Pet

Question 22

Multiple Choice

Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Which one of the following statements declares a Pet structure variable named hound and initializes the object's fields with their default values?


A) new Pet = hound;
B) Pet hound = new Pet() ;
C) hound = new Pet() ;
D) Pet hound;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions