Rank: Member Groups: Member
Joined: 3/8/2008 Posts: 5 Points: 15
|
59. Does C# support multiple inheritance?
No, use interfaces instead.
60. IS goto statement supported in C#?How about Java?
Gotos are supported in C# to the fullest. In Java goto is a reserved keyword that provides absolutely no functionality.
61. What happens when you encounter a continue statement inside for loop?
The code for the rest of the loop is ignored, the control is transferred back to the beginning of the loop.
62. Write one code example for compile time binding and one for run time binding?what is early/late binding?
An object is early bound when it is assigned to a variable declared to be of a specific object type . Early bound objects allow the compiler to allocate memory and perform other optimizations before an application executes.
‘ Create a variable to hold a new object.
Dim FS As FileStream
‘ Assign a new object to the variable.
FS = New FileStream(”C:\tmp.txt”, FileMode.Open)
By contrast, an object is late bound when it is assigned to a variable declared to be of type Object. Objects of this type can hold references to any object, but lack many of the advantages of early-bound objects.
Dim xlApp As Object
xlApp = CreateObject(”Excel.Application”)
|