Solved

Look at the Following Code Sample

Question 20

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 an instance of a Pet structure 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