An interface only contains the signature of methods, properties, events and indexers only. They can not contain the implementation/definition. Basic Interface Code using System; namespace ConsoleApplication1 { class Program { interface SomeArithmeticMethods { void operation1(); void operation2(); } class Employee : SomeArithmeticMethods { public void operation1() { Console.WriteLine(“Implementing operation 1”); } public void operation2() { […]
Post 3: Abstract Class and Abstract Methods
1. User can not create object of Abstract class. 2. Abstract class can be inherited. 3. Class which is inheriting abstract class must provide implementation to the abstract methods. 4. Use either new keyword or Override keyword to implement the abstract methods. 5. By default all abstract methods are virtual. using System; namespace ConsoleApplication1 { […]
Post 2: SQL Interview Questions
What is normalization? Explain 1NF, 2NF, 3NF? What is Transaction? Explain ACID properties? Difference between Primary key and Unique Key Difference between Union and Union ALL Difference between Union and JOIN Difference between LEFT Join and Right Join? Explain self join with a query? Explain Cross join? Difference between DELETE, TRUNCATE and DROP? Difference between […]