Answer the following statements true (T) or false (F)
1) The property notation allows the client to directly manipulate the private
instance variable.
2) A method SetName might declare a parameter accountName to receive a
new name to store in an Account object—a set accessor uses the implicitly declared
keyword parameter for the same purpose.
3) Keywords set and value can be used only in set accessors.
4) You should think of a C# class's attributes as instance variables.
1) F
2) F
3) F
4) F
You might also like to view...
Which of the following statements is false?
a. With a BufferedOutputStream each output operation is directed to a buffer large enough to hold the data of many output operations. Transfer to the output device is performed in one large physical output operation when the buffer fills. b. With a BufferedOutputStream, a partially filled buffer can be forced out to the device at any time by invoking the stream object’s force method. c. With a BufferedInputStream, many “logical” chunks of data from a file are read as one large physical input operation into a memory buffer. d. With a BufferedInputStream, as a program requests data, it’s taken from the buffer. When the buffer is empty, the next actual physical input operation is performed.
What statement accurately describes what a semantic error is?
a. A semantic error is the result of an expression that is syntactically incorrect. b. A semantic error occurs when an expression is syntactically correct, but the expression cannot be carried out. c. A semantic error is the result of an improperly nested if statement. d. A semantic error happens when an expression attempts to perform operations between incompatible data types.