5 Importent Point for OOPs
-
Upload
venkateswara-reddy -
Category
Documents
-
view
222 -
download
0
Transcript of 5 Importent Point for OOPs
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 1/21
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
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 2/21
5 important OOP Interview questions
• We will have a extensive Q and A session , so reserve your questions after thecourse.
•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
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 3/21
Visit to view 300 videos @
http://www.questpond.com
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 4/21
The big Picturewww.Questpond.Com
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 5/21
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 6/21
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
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 7/21
What are the 4 important principles in OOP ?www.QuestPond.com
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 8/21
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 classesto 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
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 9/21
www.QuestPond.com
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 10/21
What’s a interface ?
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 11/21
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 12/21
What’s a difference between interfaces and abstract classes ?
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 13/21
Two types of polymorphism www.QuestPond.com
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 14/21
Both the method namesare same but they act
differently as per inputs
This will invoke thecalculation of total cost
with out discount.
This will invoke the
calculation of total costwith discount.
Static polymorphism is achieved by using method overloadi
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 15/21
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
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 16/21
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
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 17/21
What is overloading and overriding ?
www.QuestPond.com
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 18/21
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 Extraexposed
functio
nalities.
Comp
lic ationencapsu
late
www.QuestPond.com
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 19/21
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 20/21
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
8/6/2019 5 Importent Point for OOPs
http://slidepdf.com/reader/full/5-importent-point-for-oops 21/21
Visit to view 300 videos @
http://www.questpond.com