Menu



Manage

Cord > Study_JAVA 전체 다운로드
파일 목록
Study_JAVA > 9/SuperMario.java Lines 33 | 587 바이트
다운로드

                        package week10;

public class SuperMario extends Game {
	private String lolDesc(){
		String mario = "Super Mario is Ninteno's sign game.";
		return mario;
	}
	
	private void printTitle() {
		System.out.println("title : " + getTitle());
		return;
	}
	
	private void printVersion() {
		System.out.println("version" + getVersion());
		return;
	}
	
	private void printDesc() {
		System.out.println(lolDesc());
		return;
	}	
	
	public void SuperMario(){
		game("Super Mario", "15.1");
		printTitle();
		printVersion();
		start();
		printDesc();
		return;
	}
}