摘要
本文主要以使用面向对象方法设计与实现"猜数字游戏"为例,介绍如何将现实世界中待处理的对象封装成一个类,以及如何通过数据成员和成员函数对具体的类对象进行操作。
This paper mainly uses the object-oriented method as an example to design and realize "MonkeyGuess",and introduces how to deal with the real world objects encapsulated into a class,and how to pass through the data members and member function for the specific class object to carry on the operation.