How do you inherit from a class in C#?



How do you inherit from a class in C#?..

Answer / guest

Place a colon and then the name of the base class. Notice
that it?s double colon in C++.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is cookies c#?

0 Answers  


How can I check the type of an object at runtime?

0 Answers  


Is list passed by reference c#?

0 Answers  


What are the delegates in c#?

0 Answers  


What is Interface Polymorphism?with E.g

1 Answers  






Can you pass parameters to destructors?

0 Answers  


Difference between C++ and C#.net

19 Answers   Google, TCS, Wipro,


What are partial classes and use of partial classes?

0 Answers   QuestPond,


In c#, what will happen if you do not explicitly provide a constructor for a class?

0 Answers  


How do you create multiple inheritance in C#?

5 Answers   Infosys, KenIndia, Microsoft,


Why do we need interface in c#?

0 Answers  


i have a question which is quite simple but yet complicated for me my question is why do we use void, if it does not return anything to the compiler? if it is used for normal display it can also be done by what is called Console.Write() or Consol.WriteLine() and if i do not use void with my method then my compiler throws me an error. if i return a value say integer then i write public int fun() display of the result can also be done here then why is it so necessary to use void with a function and why so compiler throw us an error if v don't use void return type?

2 Answers  


Categories