1. What is static keyword in .Net?
Static is same as constant variable(Assign the values at compile time only) but we can change the value of static variable and we can access the variables without creating any instances.
2. What is Interface and their use?
Interface looks like a class, but has no implementation. The only thing it contains are declarations of events,Methods and proprieties.
Inheritance allows creating classes that are derived from other classes, so that they automatically include some of its “parent’s” members, and also its own.
class Children: Father
In Polymorphism poly means “multiple” and morph means “forms” so polymorphism means many forms.
Polymorphism has ability to provide different implementation of methods that are implemented with same name.
Compile Time : Also called as Early Binding or Overloading or static binding
Run Time :Also called as Late Binding or Overriding or dynamic binding
public class Class1
public void NumbersAdd(int a, int b)
Console.WriteLine(a + b);
public void NumbersAdd(int a, int b, int c)
Console.WriteLine(a + b + c);