-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Enterprise Application Development with C# 10 and .NET 6 - Second Edition
By :
a. Base class instances should be replaceable with instances of their derived type.
b. Derived class instances should be replaceable with instances of their base type.
c. Designing for generics that can work with any data type.
Answer: a
a. Instead of one common large interface, plan for multiple scenario-specific interfaces for better decoupling and change management.
b. You should avoid taking a direct dependency approach on concrete implementation. Instead, you should depend on abstractions as much as possible.
c. An entity should only have a single responsibility. You should avoid empowering one entity with multiple responsibilities.
d. Entities should be designed in such a way that they should be open for extension but closed for modification.
Answer: c
a. Entities should be open to modification but closed for extension.
b. Entities should be open to extension but closed for modification.
c. Entities should be open to composition but closed for extension.
d. Entities should be open to abstraction but closed for inheritance.
Answer: b
a. Proxy
b. Bridge
c. Iterator
d. Adapter
Answer: d
a. The domain-driven design principle
b. The single-responsibility principle
c. The stateless service principle
d. The resiliency principle
Answer: b