What are the keywords used to pass parameters to
the base class and how do I invoke other constructors.

Answer Posted / ram

Class Base
{
Base(int i)
{
}
}
class child
{
child(int i):Base(i)
{
}
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have multiple threads in one app domain?

515


What is difference between abstraction and encapsulation in c#?

512


What is the difference between as and is operators in c#?

434


How do I unload an application domain?

519


What is namespace in oop?

486






Contrast between an interface and abstract class?

535


What are primitive data types in c#?

518


What is an inheritance in c#?

491


Explain the OOPS concept in C#?

579


How to add controls dynamically to the form using c#.net.

469


what will be the output of the given below coding. using System; public class Exercise { static void OddNumbers(int a) { if (a >= 1) { Console.Write("{0}, ", a); a -= 2; OddNumbers(a); } } public static int Main() { const int Number = 9; Console.WriteLine("Odd Numbers"); OddNumbers(Number); Console.WriteLine(); return 0; } }

3307


What is delegation in oops?

516


What is yield return in c#?

490


What kind of the information stored inside the assembly?

551


Why is dll used?

592