---
title: "作业07：用非图形界面测试Rect"
author: "stonegreen"
date: "2013-03-30T09:42:32Z"
tags: []
categories: ["编程语言"]
slug: "07-rect"
draft: false
lastmod: "2013-03-30T09:43:59Z"
id: 1839089
url: "https://stonegreen.iteye.com/blog/1839089"
---

作业07情况：
认为对象的属性不同，方法也是每对象一个

> 
> public String reportStatus01() {
> 		String status01 = "";
> 		status01 = "tank01油料=" + fuel + ",ammo=" + ammo;
> 		return status01;
> }
> public String reportStatus02() {
> 		String status02 = "";
> 		status02 = "tank02油料=" + fuel + ", ammo =" + ammo;
> 		return status02;
> }
> 
>