Vous êtes sur la page 1sur 21

Attendees View

In case you are not able to hear the voice Please click on the raise hand option. Wiziq Support chat will help you for the same. Any issues you can ping the Wiziq support chat user

Raise Hand Option

5 important OOP Interview questions


www.QuestPond.com By Shivprasad Koirala We will have a extensive Q and A session , so reserve your questions after the course.
5 Important 5 Important (IST) 5 Important (IST) 5 Important 5 Important (IST) OOP Interview Questions Saturday, April 10, 2010, at 10:00 AM (IST) ASP.NET Interview Questions Sunday, April 11, 2010, at 10:00 AM SQL Server Interview Questions Saturday, April 17, 2010, at 10:00 AM .NET Interview Questions Sunday, April 18, 2010, at 10:00 AM (IST) ADO.NET Interview Questions Saturday, April 24, 2010, at 10:00 AM

Visit to view 300 videos @ http://www.questpond.com

www.Questpond.Com

The big Picture

Agenda

www.QuestPond.com

What are the 4 important principles in OOP? Whats the difference between abstract class and interface? What are the different types of polymorphism? What is overloading and overriding? How do we achieve encapsulation in C#?

http://www.wiziq.com/online-class/292853-oop-interview-questions
Send a message to Wiziq Support chat user or you can call for more details @

91-9216405405

4 Important Principles Abstraction, Encapsulation, Inheritance and Polymorphism. Interview questions covering Abstraction, Encapsulation, Inheritance and Polymorphism. Concepts of Abstract classes and Interfaces Interview questions around abstract classes and interfaces Concept of Polymorphism and different types of polymorphism Interview questions around static and dynamic polymorphism. Concept of Shadowing Interview questions around shadowing and overriding. Concept of access modifiers Interview questions around Access modifiers and encapsulation. Concept of Static keyword Interview questions around Static keyword. 3 tier-architecture concepts using OOPS Interview questions 3-tier architecture. Study material with Course Source code of what is taken in the class Interview questions Ebook covering 400 Interview question PDF with answers

www.QuestPond.com

1 month of subscription of 400 videos covering WCF,WPF,WWF,Azure,Silverlight , Design pattern , UML and lot more. Click on the below image to know about the same.

What are the 4 important principles in OOP ?

www.QuestPond.com

Whats a abstract class ? Abstract classes are one of the essential behaviors provided by .NET. Commonly, you would like to make classes that only represent base classes, and dont want anyone to create objects of these class types. You can make use of abstract classes to implement such functionality in C# using the modifier 'abstract'.

www.QuestPond.com
An abstract class means that, no object of this class can be instantiated, but can make derivations of this. An abstract class can contain either abstract methods or non abstract methods. Abstract members do not have any implementation in the abstract class, but the same has to be provided in its derived class.

An abstract class cannot be a sealed class. I.e. the following declaration is incorrect.

www.QuestPond.com

Whats a interface ?

Whats a difference between interfaces and abstract classes ?

Two types of polymorphism

www.QuestPond.com

Static polymorphism is achieved by using method overloadin

This will invoke the calculation of total cost with out discount. Both the method names are same but they act differently as per inputs This will invoke the calculation of total cost with discount.

Parent Product class

Virtual keyword necessary to override the method

Class inherited and getTotalCost overridden with new functionality Inherited Child Product class

Override keyword necessary to define new implementation

Dynamic polymorphism is achieved by using overriding objProduct = new clsProduct(); objProduct.getTotalCost(intQty, intPerProductCost,"INR") This invokes the parent class code

clsProduct objProduct;

This invokes the child class code objProduct = new clsProductWithDiscount(); objProduct.getTotalCost(intQty, intPerProductCost,"INR")

www.QuestPond.com

What is overloading and overriding ?


www.QuestPond.com

www.QuestPond.com

Encapsulation means hiding complexity

Extra exposed functionalities.

clsProduct obj = new clsProduct(); obj.CheckProduct(intPerProductCost); obj.CheckQty(intQty); int totalCost = obj.getTotalCost(10,100);

Complication encapsulated

clsProduct obj = new clsProduct(); obj.PerProductCost = intPerProductCost; obj.Quantity = intQty;

http://www.wiziq.com/online-class/292853-oop-interview-questions
Send a message to Wiziq Support chat user or you can call for more details @

91-9216405405

4 Important Principles Abstraction, Encapsulation, Inheritance and Polymorphism. Interview questions covering Abstraction, Encapsulation, Inheritance and Polymorphism. Concepts of Abstract classes and Interfaces Interview questions around abstract classes and interfaces Concept of Polymorphism and different types of polymorphism Interview questions around static and dynamic polymorphism. Concept of Shadowing Interview questions around shadowing and overriding. Concept of access modifiers Interview questions around Access modifiers and encapsulation. Concept of Static keyword Interview questions around Static keyword. 3 tier-architecture concepts using OOPS Interview questions 3-tier architecture. Study material with Course Source code of what is taken in the class Interview questions Ebook covering 400 Interview question PDF with answers

www.QuestPond.com

1 month of subscription of 400 videos covering WCF,WPF,WWF,Azure,Silverlight , Design pattern , UML and lot more. Click on the below image to know about the same.

Visit to view 300 videos @ http://www.questpond.com

Vous aimerez peut-être aussi