Abstraction
used to hideunnecessary information and display only necessary
information to the users interacting
11.
Abstract Class
â Isa Partial Implementation for Other Classes [Concrete Class]
â You Canât Create Object [Instance] from Abstract class , Because it is
not Fully implemented
12.
C# Keywords IndicateThe Accessibility Scope
What You Can Write Inside The Abstract Class :
1. Attribute
2. Property
3. Function
4. Event
5. Abstract Method
6. Abstract Property
Abstract
Class
13.
Interface
â Code ContractBetween 2
Developers
Abstract
Class
â Partial implementation for Other
Classes.
C# Keywords IndicateThe Accessibility Scope
â is a just Container For Static Members [Attribute, Property,
Constructor, Method] and Constants
â You Can't Create Object From This Class (Helper Class)
â No Inheritance for this Class
Static
class
16.
C# Keywords IndicateThe Accessibility Scope
â Class Member Method Called Through Class
â The Result Of Calling Method Won't Differ By The Difference Of
The Object State [Data]
Static
Method
17.
Static Property [ClassMember Property] Must Return One Of These:
1. Static Attribute
2. Constant
Static
Property
Compiler Will Initialize the Static Attribute With The Default Value of
Its Datatype
Static
Attribute
18.
Usages Of Class
1.Call Static Method or Static Property
2. Create Object From This Class
3. Create Object From Another Class Inheriting From This Class
â Static Constructor [Maximum Only One Static Constructor Per Class].
â Can't Specify Access Modifiers or Parameters for Static Constructor .
â Will be Executed Just Only One Time Per Class Lifetime Before the first
Usage of Class .
Static
Constructor