Monday, September 8, 2008

Apple ACPT Certification Exam 9L0-402

C# is very similar 9L0-509 to Java in that it takes the basic operators and style of C++ but forces programs to be type safe, in that it executes the code in a controlled sandbox called the virtual machine. As such, 9L0-402 Exam all code must be encapsulated inside an object, among other things. C# provides many additions to facilitate interaction with Windows, COM, and Visual Basic.

There are several shortcomings to C++ which are resolved in C#. One of the more subtle ones is the use of reference variables as function arguments. When a code maintainer is looking at C++ source code, if a called function is declared in a header somewhere, the immediate code does not provide any indication that an argument to a function is passed as a reference. An argument passed by reference could be changed after 9L0-509 calling the function whereas an argument passed by value cannot be changed. A maintainer not be familiar with the function looking for the location of an unexpected value change of a variable would additionally need to examine the header file for the function in order to determine whether or not that function could have changed the value of the variable. C# insists that the ref keyword be placed in the function call (in addition to the function 9L0-402 Braindump declaration), thereby cluing the maintainer in that the value could be changed by the function.

No comments: