class Program { static void Main(string[] args) { B obj = new B(); Console.ReadKey(); } } abstract class A { public A() { Console.WriteLine("This is the A class"); //calc(); } public abstract void calc(); } class B : A { public B() { Console.WriteLine("This is the B class"); } public override void calc() { Console.WriteLine("This is the abstract methode"); } } Questions: 1. What will be printed on the console? 2. what will be printed to the console if we remove this "//" before the calc() in the contractor of class A;
Junior Net Developer Interview Questions
215 junior net developer interview questions shared by candidates
What is an overwrite in Java
Expected Salary
State-management technique
What is the difference between a stack and a queue?
What is polymorphism in oop?
Is multiple inheritance supported in C#?
Where does web host builder get initialized in a .NET core project?
They asked me to write up a simple function to calculate a factorial, be it in real code or pseudo code.
What is a singleton object?
Viewing 41 - 50 interview questions