package de.fred;
/**
 * This human is a class representing the lessons learned
 * in the 5th course, preparing the 6th.
 * 
 * @author mario
 */
public class Human {
	
	String name;
	
	/**
	 * This is the constructor of the class, creating the
	 * object and filling all the member variables with 
	 * values.
	 * 
	 * @param name the name of the human
	 */
	public Human(String name) {
		// set the members
		this.name = name;
	}
	
	/**
	 * This is a method of the object.
	 * 
	 * As a possible behavior of the object, it will print the
	 * name of the student and the message to the console.
	 * 
	 * @param message the message the human should say
	 */
	void say(String message) {
		// print the message to the console by using
		System.out.println(this.name+": \""+message+"\"");
	}
	
}
