|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#2. You write a class named Employee that includes the following code segment. Private m_EmployeeId As String Private m_EmployeeName As String Private m_JobTitleName As String Public Function GetName() As String Return m_EmployeeName End Function Public Function GetTitle() As String Return m_JobTitleName End Function End Class
You need to expose this class to COM in a type library. The COM interface must also facilitate forward-compatibility across new versions of the Employee class. You need to choose a method for generating the COM interface. What should you do?
Show comments for this question (0)
Add comments
Link to this question
|
|
#3. You are developing a custom event handler to automatically print all open documents. The event handler helps specify the number of copies to be printed. You need to develop a custom event arguments class to pass as a parameter to the event handler. Which code segment should you use?
Show comments for this question (0)
Add comments
Link to this question
|
|
#5. You are creating a class that uses unmanaged resources. This class maintains references to managed resources on other objects. You need to ensure that users of this class can explicitly release resources when the class instance ceases to be needed. Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)
Show comments for this question (0)
Add comments
Link to this question
|
|
#10. You are testing a newly developed method named PersistToDB. This method accepts a parameter of type EventLogEntry. This method does not return a value. You need to create a code segment that helps you to test the method. The code segment must read entries from the application log of local computers and then pass the entries on to the PersistToDB method. The code block must pass only events of type Error or Warning from the source MySource to the PersistToDB method. Which code segment should you use?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.08
|
Server date 02:54 08-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|