Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

solid principles c#

// Every world has its meaning
S: is single responsibility principle (SRP) 
   A class should take care of a Single Responsibility
   
O: stands for open closed principle (OCP) 
   Prefer extension over modification
   
L: Liskov substitution principle (LSP)
   The parent class should be able to refer child objects seamlessly during runtime polymorphism
     
I: interface segregation principle (ISP)
   A client should not be forced to use an interface, if it doesn’t need it 
   
D: Dependency injection principle (DIP)
   High level modules should not depend on low-level modules, but should depend on abstraction.
Comment

solid principles c#

// solid principles
S: is single responsibility principle (SRP) 
   A class should take care of a Single Responsibility
   
O: stands for open closed principle (OCP) 
   Prefer extension over modification
   
L: Liskov substitution principle (LSP)
   The parent class should be able to refer child objects seamlessly during runtime polymorphism
     
I: interface segregation principle (ISP)
   A client should not be forced to use an interface, if it doesn’t need it 
   
D: Dependency injection principle (DIP)
   High level modules should not depend on low-level modules, but should depend on abstraction.
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity set sprite image from script 
Csharp :: save image in c# 
Csharp :: how to define a function in c# 
Csharp :: c# close program 
Csharp :: c# streamwriter add new line 
Csharp :: c# string ends with 
Csharp :: unity toint 
Csharp :: Terrain Tools unity missing 
Csharp :: append 2 arrays c# 
Csharp :: maclaurin series 
Csharp :: sorting a datatable in c# 
Csharp :: enum c# 
Csharp :: if viewbag is null 
Csharp :: the same schemaid is already used for type swagger 
Csharp :: wpf clear grid 
Csharp :: unity get pivot position 
Csharp :: c# get logged on user name 
Csharp :: should i learn c # 
Csharp :: how to reload app.config file at runtime in c# 
Csharp :: destroy gameobject with tag unity 
Csharp :: c# combobox lock edit 
Csharp :: return an interface or a class C# 
Csharp :: declare string array c# without size 
Csharp :: singleton pattern c# 
Csharp :: wpf datagrid get selected items 
Csharp :: iframe set html content c# 
Csharp :: unity audio source 
Csharp :: how to access asp button of gridview 
Csharp :: how to add event function from code in wpf 
Csharp :: render world space UI infront of everything unity 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =