5 important OOPS interview questions

Add to Favourites
Post to:
Join the .NET Community

Description
5 important OOPS interview questions

Comments
Presentation Transcript Presentation Transcript

Slide 1 : Attendee’s View Raise Hand Option 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

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

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

Slide 4 : The big Picture www.Questpond.Com

Slide 5 : Agenda What are the 4 important principles in OOP? What’s 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#? www.QuestPond.com

Slide 6 : 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 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. www.QuestPond.com

What are the 4 important principles in OOP ? : What are the 4 important principles in OOP ? www.QuestPond.com

What’s a abstract class ? : What’s 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 don’t 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'. 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

Slide 9 : www.QuestPond.com

What’s a interface ? : What’s a interface ?

Slide 11 :

What’s a difference between interfaces and abstract classes ? : What’s a difference between interfaces and abstract classes ?

Two types of polymorphism : Two types of polymorphism www.QuestPond.com

Slide 14 : Both the method names are same but they act differently as per inputs This will invoke the calculation of total cost with out discount. This will invoke the calculation of total cost with discount. Static polymorphism is achieved by using method overloading

Slide 15 : Parent Product class Inherited Child Product class Virtual keyword necessary to override the method Override keyword necessary to define new implementation Class inherited and ‘getTotalCost’ overridden with new functionality

Slide 16 : clsProduct objProduct; objProduct = new clsProduct();objProduct.getTotalCost(intQty, intPerProductCost,"INR") objProduct = new clsProductWithDiscount();objProduct.getTotalCost(intQty, intPerProductCost,"INR") This invokes the parent class code This invokes the child class code Dynamic polymorphism is achieved by using overriding www.QuestPond.com

What is overloading and overriding ? : What is overloading and overriding ? www.QuestPond.com

Slide 18 : clsProduct obj = new clsProduct(); obj.CheckProduct(intPerProductCost); obj.CheckQty(intQty); int totalCost = obj.getTotalCost(10,100); clsProduct obj = new clsProduct(); obj.PerProductCost = intPerProductCost; obj.Quantity = intQty; Encapsulation means hiding complexity Extra exposed functionalities. Complication encapsulated www.QuestPond.com

Slide 19 :

Slide 20 : 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 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. www.QuestPond.com

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

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
143 Members Recommend
231 Followers

Your Facebook Friends on WizIQ

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect