Object Oriented Design Basic Concepts
Reference from: Clean Architecture: A Craftsman’s Guide to Software Structure and Design Robert C. Martin You can see this clearly in Figure 17.1 . The BusinessRules use the DatabaseInterface to load and save data. The DatabaseAccess implements the interface and directs the operation of the actual Database . Figure 17.1 The database behind an interface The classes and interfaces in this diagram are symbolic. In a real application, there would be many business rule classes, many database interface classes, and many database access implementations. All of them, though, would follow roughly the same pattern. Where is the boundary line? The boundary is drawn across the inheritance relationship, just below the DatabaseInterface ( Figure 17.2 ). Figure 17.2 The boundary line Note the two arrows leaving the DatabaseAccess class. Those two arrows point away from the DatabaseAcces...

Comments
Post a Comment