Expalin the way you implement inheritance by using VB.NET/C#?



Expalin the way you implement inheritance by using VB.NET/C#?..

Answer / Daksh Pratap Singh

In VB.NET and C#, implementing inheritance involves declaring a new class as a descendant of an existing one. The syntax for this is: <new_class> : <base_class>. For example, in C#: public class DerivedClass : BaseClass { ... }

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is difference between private and protected?

1 Answers  


What are the different types of comments in c#?

1 Answers  


What is difference between managed and unmanaged code?

1 Answers   SwanSoft Technologies,


What is the use of console readline () in c#?

1 Answers  


What is the difference between webgarden and webfarm?

1 Answers   Mphasis,


Why do we need indexers in c#?

1 Answers  


Compare and contrast between the System.Array.CopyTo() and Clone()?

1 Answers   Siebel,


How many parameters can a method have c#?

1 Answers  


Why would you use untrusted verificaion?

1 Answers  


t name of controls, which are displayed same in all browers?

1 Answers   TCS,


What is difference between array and arraylist in c#?

1 Answers  


what is satelite assembly?

5 Answers   ABC,


Categories