Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Abstract Class
Abstractclassesdeclaredusingtheabstract keyword and
only represent as a base classes, no one can instantiate
(createobjects)theseclasses.
Abstractclassis
aclassthat
contain
complete
andabstract (incomplete) bothtypeofmemberanditcannot
beinstantiated.
Through abstract class we can provide behavior as well
as functionalitybothinthesametime.
Differentinmove
Common
Interfaces
Interface is a type which contains only the signatures of
methods,delegatesorevents,ithasnoimplementation.
Implementation of the methods is done by the class that
whichimplementstheinterface.
Interfaces in Quantum
FrameworkWebInterfacesandNavigationinterfaces
Alertcontrol
BorrowerDetailsmanagement
ConditionManagement
Portfoliomanagement
Ordermanagement
Productandorderingmanagement
Investorsdetails
Documentmanagement
Abstraction
Abstractionismechanismtoshow only relevant data to
theuser.
It is process of identifying the relevant qualities and
behaviorsanobjectshouldpossess.
In other word represent the necessary feature without
representingtheback ground details.
Encapsulation
Encapsulationistheprocessofhiding irrelevant data
fromtheuser.
Encapsulationistheprocessofhiding or securing data
fromoutsidefunctions.
The data is strictly binded with function members
declaredinthesameclass.
Polymorphism
Polymorphismsisnothingbutabilitytotakemorethanoneforms.
OneInterface,MultipleMethods(or)
OneName,ManyForms
ExampleofCompileTimePolymorphism:Method Overloading
ExampleofRunTimePolymorphism:Method Overriding
Method Overloading:Method with same name but with different arguments is
calledmethodoverloading.
Method Overriding:Methodoverridingoccurswhenchildclassdeclaresa
methodthathasthesametypeargumentsasamethoddeclaredbyoneofits
superclass.
Door of Church
Door of House
Inheritance
Inheritanceisamechanismofacquiringthefeaturesand
behaviorsofaclassbyanotherclass.
The class whose members are inherited is called the
base class, and the class that inherits those members is
calledthederived class.
Types of Inheritance
Single Inheritance
Hierarchical Inheritance
Multi Level Inheritance
Hybrid Inheritance
Multiple Inheritance
Single Inheritance
whenasinglederivedclassiscreatedfromasinglebase
classthentheinheritanceiscalledassingleinheritance.
Hierarchical Inheritance
whenmorethanonederivedclassarecreatedfroma
singlebaseclass,thenthatinheritanceiscalledas
hierarchicalinheritance.
Hybrid Inheritance
Anycombinationofsingle,hierarchicalandmultilevelinheritances
iscalledashybridinheritance.
Multiple Inheritance
Whenaderived class iscreatedfrom more than one base class
thenthatinheritanceiscalledasmultipleinheritance.
Butmultipleinheritanceisnotsupportedby.NET using classesand
canbedoneusinginterfaces.