Solved

Look at the Following Code Sample: Struct Pet

Question 61

Multiple Choice

Look at the following code sample: struct Pet
{
Public string name;
Public int age;
Public string type;
}
Pet hound = new Pet() ;
Which one of the following statements assigns the string "Beagle" to the hound object's type field?


A) hound = new type("Beagle") ;
B) type = "Beagle";
C) hound.type = "Beagle";
D) Pet.hound.type("Beagle") ;

Correct Answer:

verifed

Verified

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

Related Questions