Skip to content

Head First Design Patterns Implementation in C# for .NET Core

Notifications You must be signed in to change notification settings

d0pare/design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Design Patterns

OO Patterns

OO Principles

  • Encapsulates what varies.
  • Favor composition over inheritance.
  • Program to interfaces, not implementations.
  • Strive for loosely coupled designs between objects that interact
  • Classes should be open for extension but closed for modification.
  • Depend on abstractions. Do not depend on concrete classes.
  • Principle of Least Knowledge: talk only to your immediate friends.
  • The Hollywood Principle: Don't call us, we'll call you.
  • A class should have only one reason to change.

You need .NET 8 to run these examples.

About

Head First Design Patterns Implementation in C# for .NET Core

Topics

Resources

Stars

Watchers

Forks

Languages