In this paper, we introduced a clear objectoriented framework to implement the complicated adaptive procedure with C ++ programming language. In this framework, it consisted of the unstructured mesh generation, a-posterior error estimating, adaptive strategy, and the postprocessing. Unlike the procedure-oriented framework, which is commonly used in DC resistivity modeling with FORTRAN language, the object-oriented one, which is famous for its characteristic of encapsulation, could be used for a class of problems that would be executed by only making some changes on the user interface. To validate its flexibility, two synthetic DC examples were tested here.