OOP flash cards: Freelancer level
20 OOP terms at the Freelancer level, as flash cards.
Updated
Terms in this deck
- Abstraction
- Abstraction is the concept of focussing on only what is needed to solve the current…
- Adapter Pattern
- A pattern that makes one interface look like another, like a travel plug adapter.
- Builder Pattern
- A pattern for building a complicated object step by step.
- Decorator Pattern
- A pattern that wraps an object to add behavior without changing its class.
- Dependency Injection
- Handing a class the things it needs instead of letting it create them.
- Dependency Inversion Principle
- Depend on interfaces, not on specific implementations.
- Design Pattern
- A named, proven solution to a common code design problem.
- DRY Principle
- "Don't Repeat Yourself": keep each piece of knowledge in one place.
- Factory Pattern
- A pattern that puts object creation in one place so callers don't pick the class.
- Interface Segregation Principle
- Prefer small, focused interfaces so classes only provide what they need.
- Law of Demeter
- A method should talk to its direct collaborators, not reach deep into their parts.
- Liskov Substitution Principle
- A child class must work anywhere its parent class is expected, without surprises.
- Observer Pattern
- A pattern where subscribers are notified automatically when something changes.
- Open/Closed Principle
- Add new behavior by adding code, not by changing code that already works.
- Repository Pattern
- A pattern that hides data storage behind a simple collection-like interface.
- Single Responsibility Principle
- A class should have one job, and so only one reason to change.
- Singleton Pattern
- A pattern that allows only one object of a class for the whole program.
- SOLID Principles
- Five guidelines for keeping object-oriented code easy to change.
- Strategy Pattern
- A pattern where interchangeable classes each hold one way of doing a task.
- Tell, Don't Ask
- Tell an object what to do instead of pulling its data out and deciding for it.