OOPs Interview Questions and Answers
- What is Object Oriented Programming?
- What’s the difference between abstraction and encapsulation?
- How can we implement dynamic polymorphism?
- What are abstract methods?
- What is difference between abstract classes and interfaces?
- How can we create a delegate?
- Do events have return type?
- What is the difference between Shadowing and Overriding?
- What are similarities between Class and structure?
- What is ENUM?
- Can we have different access modifiers on get/set methods of a property?
- What is a Class and object?
- How is inheritance implemented in .NET?
- What is the difference overriding and overloading?
- What is an Interface?
- An abstract with only abstract method, how is it different from interfaces?
- What is a multicast delegate?
- Can events have access modifiers?
- If we inherit a class do the private variables also get inherited?
- What is the difference between Class and structure’s?
- What is nested Classes?
- Will the finally run in this code?
- What are different properties provided by Object-oriented systems?
- What are the two different types of polymorphism?
- What is operator overloading?
- Do interface have accessibility modifier ?.
- If we want to update interface with new methods, what is the best practice?
- What are Events?
- Can we have shared events?
- How can we stop the class from further inheriting?
- What does virtual keyword mean?
- If you create the child class object which constructor will fire first?
- What is Indexer?
- How can we implement encapsulation in .NET?
- How can we implement static polymorphism?
- What are abstract classes?
- Can we create an object of abstract class or an interface?
- What is a delegate?
- What is the difference between delegate and events?
- What is shadowing?
- What is the use of “Must inherit” keyword in VB.NET?
- What are shared (VB.NET)/Static(C#) variables?
- In what instances you will declare a constructor to be private?
- Can we have static indexer in C#?
No comments:
Post a comment