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.
For each of the following statements, select Yes if the statement is true.
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..
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
Yes, No, No
No, Yes, Yes.
BTW, A linked list can be sorted using a custom algorithm, not from an inherent method.