41. What is abstract class?
Ans: Abstract class is like a class but at list one method defined as abstract. Abstract class can not be instantiated . It can be use as a supper class for other classes that extend the other class.. An abstract class is essentially a blueprint for a class without any implementation.
42. How to allowed a class to be inherited, but it must be prevent the method from being over-ridden?
Ans: Just leave the class public and make the method sealed.
43. How to prevent your class from being inherited by another class?
Ans: We use the sealed keyword to prevent the class from being inherited.
44. What class is underneath the SortedList class?
Ans: A sorted HashTable.
45. What is the .NET collection class that allows an element to be accessed using a unique key?
Ans: HashTable is the .net collection class that allows an elements to be accessed using a unique key.
46. Difference between the System.Array.Clone() and System.Array.CopyTo()?
Ans: System.Array.Clone(): The Clone() method returns a new array object containing all the elements in the original array.
System.Array.CopyTo(): The CopyTo() method copies the elements into another existing array.
47. Difference between System. String and System.Text.StringBuilder classes?
Ans: System.String is immutable that means data vale may not be changed.
System.StringBuilder is mutable string where a variety of operations can be performed.
48. What is the top .NET class that everything is derived from?
Ans: System.Object.
49. How can you automatically generate interface for the remotable object in .NET?
Ans: Use the Soapsuds tool.
50. How to configure a .NET Remoting object via XML file?
Ans: It can be done via machine.config and web.config in Asp.Net.
Ans: Abstract class is like a class but at list one method defined as abstract. Abstract class can not be instantiated . It can be use as a supper class for other classes that extend the other class.. An abstract class is essentially a blueprint for a class without any implementation.
42. How to allowed a class to be inherited, but it must be prevent the method from being over-ridden?
Ans: Just leave the class public and make the method sealed.
43. How to prevent your class from being inherited by another class?
Ans: We use the sealed keyword to prevent the class from being inherited.
44. What class is underneath the SortedList class?
Ans: A sorted HashTable.
45. What is the .NET collection class that allows an element to be accessed using a unique key?
Ans: HashTable is the .net collection class that allows an elements to be accessed using a unique key.
46. Difference between the System.Array.Clone() and System.Array.CopyTo()?
Ans: System.Array.Clone(): The Clone() method returns a new array object containing all the elements in the original array.
System.Array.CopyTo(): The CopyTo() method copies the elements into another existing array.
47. Difference between System. String and System.Text.StringBuilder classes?
Ans: System.String is immutable that means data vale may not be changed.
System.StringBuilder is mutable string where a variety of operations can be performed.
48. What is the top .NET class that everything is derived from?
Ans: System.Object.
49. How can you automatically generate interface for the remotable object in .NET?
Ans: Use the Soapsuds tool.
50. How to configure a .NET Remoting object via XML file?
Ans: It can be done via machine.config and web.config in Asp.Net.
Previous | Next |
:: Click the links below for similar type Questions and answers ::
0 comments:
Post a Comment