Entry 3613

Word abstract class

   

Submitted by anonymous on April 22, 2010 at 3:15 p.m.
Language: PHP. Code size: 394 bytes.

<?php
class Word
{
	public $spelling = '';
	public $digits = NULL;
	public $code = '';
	
	public function __construct() {}
	
	/**
	 * Translate a word to digital code and fills the Word::$digits and Word::$code attributes. Returns true on success and false on error
	 *
	 * @return boolean
	 */	
	public function translateWord() {
		// Это часть вашей домашней работы!
	}
}
?>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).