R4R
Right Place For Right Person TM
R4R C# C# FAQS C# Subjective Questions and Answers

 


Totel:418 Click: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84

C# Interview Questions And Answers

Page 4

Questions 16 What is the top .NET class that everything is derived from?

Answer
System.Object

Questions 17 When we can inherit a protected class-level variable?

Answer
Classes in the same namespace.

Questions 18 Does C# support multiple inheritance?

Answer
No directly,but we can use interface for multiple inheritence

Answer
No directly,but we can use interface for multiple inheritence

Questions 19 How do you inherit from a class in C#?

Answer
Place a colon and then the name of the base class. exmple:- class a {} class b: a //inherit class a {}

Questions 20 What is an abstract class?

Answer
Abstract class:-Use the abstract modifier in a class declaration to indicate that a class is intended only to be a base class of other classes. Abstract classes have the following features: 1-An abstract class cannot be instantiated. 2-An abstract class may contain abstract methods and accessors. 3-It is not possible to modify an abstract class with the sealed modifier, which means that the class cannot be inherited. 4-A non-abstract class derived from an abstract class must include actual implementations of all inherited abstract methods and accessors. Abstract class have complete and non complete member and methods. Example:- abstract class a { int a; public abstract void print(); }


Goto Page:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
Share |

C# Objective Questions And Answers

C# Objective Questions And Answers

C# Interview Questions And Answers

C# Interview Questions And Answers


R4R,C# Objective, C# Subjective, C# Interview Questions And Answers,C#,C# Interview,C# Questions ,C# Answers

New Updates

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R