Program slicing is an important method for debugging, testing, analyzing, understanding and maintaining object-oriented software. In this paper, a new hierarchy slicing approach is presented so as to replace old slicing methods based on SDG (system dependence graph). The main idea of hierarchy slice and algorithm are discussed in this paper, and the application of hierarchy slicing algorithm is also presented at the end of this paper.