HOTSPOT
You have a base class named Tree with a friend property named color and a protected
property named NumberOfLeaves. In the same project, you also have a class named Person.
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.

Yes = Color properties are public..
No = Person can’t access NumberOfLeaves property because it’s already signed as Protected and Person aren’t derived class from tree..
No = Tree can’t access any private properties in Person since it “Private”..
CMIIW and Sorry for my English..
1
0
Friend property was new to me until I stumbled upon this question. Here’s the definition; https://msdn.microsoft.com/en-us/library/aa241725(v=vs.60).aspx
0
0
Yes, No, No
0
0