You are developing code for a class named Account. The Account class includes the following method: You need to ensure that overflow exceptions are thrown when there is an error. Which type of block should you use?
正解:A
Explanation/Reference: Explanation: The checked keyword is used to explicitly enable overflow checking for integral-type arithmetic operations and conversions. References: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/checked https://docs.microsoft.com/en-us/dotnet/api/system.overflowexception?view=netframework-4.7.2