Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You must create a new attribute class in which to mark other classes in the ISV solution and their respective methods with the error levels Warning and Error.
You have the following class: (Line numbers are included for reference only.)
You need to ensure that the compiler will report an error if code calls the bike method.
Solution:
Create the following attribute class:
Insert the following code at line 01:
[ISVObsoleteAttribute(ErrorWarning::Warning, "This class will be deprecated in future releases, please use the Transportation class instead.")]
Insert the following code at line 04:
[ISVObsoleteAttribute(ErrorWarning::Error, "Deprecated. Please use the bicycle class instead.")]
Does the solution meet the goal?
smithlaod
1 year, 3 months ago8933e4c
8 months, 2 weeks agokself
1 year, 4 months ago