Relationships Between
Classes
1. Inheritance2. Association
Class Product { }
Class OrderItem
{ Product Product ; }
Association Composition
Class Chair{}
Class Room
{ chair[] Chairs; }
Orderitem Has a Product
Association Aggregation
Room Has Chairs
â Static bindingworks during compile time
â Compiler Will Bind Function Call Based On Reference Type Not Object Type
â Dynamic binding works during run time
â CLR Will Bind Function Call Based On Object Type Not Reference Type
Session
Content
1. Interface
2. DeepCopy And Shallow Copy
3. Built In Interface [ICloneable]
4. Built In Interface [IComparable]
5. Built In Interface [IComparer]
Interf
ace
C# Keywords IndicateThe Accessibility Scope
What You Can Write Inside The Interface
1. Signature for Property
2. Signature for Method
3. Default Implemented Method
13.
C# Keywords IndicateThe Accessibility Scope
â Default Access Modifier Inside Interface => Public
â Default Access Modifier of Interface => Internal
â Private Access Modifier is not allowed inside interface
â You Can not Create an object from interface but you can
create a reference from interface
â Interface is a Code Contract Between 2 Developers
â Interface Can Be Implemented Through Class Or Struct
Interf
ace