|
Give a simple example:
C has a database class CDatabase (assuming this name), this class completes the basic operations of the database, such as: connect, disconnect, execute SQL statements.
B is another class library that encapsulates the processing of a particular aspect of the business, which requires reading and writing database data, so a class library C is introduced in the project, so that B can use the classes in C.
A is an application that is responsible for managing the entire information system, which of course includes managing the part contained in B, so B is introduced into the project, so that the classes in B can be used. However, at some point A needs to access the database directly, so it refers to C and wants to use the classes in C to access the database.
The so-called reference is to include a dll file into the project. Found in actual use, if you do this, you will have spatial naming conflicts
Please express your opinions. |
|