4
ゲッターをゲット
タスク 私は誰もが自動コード生成と仕事中の時間の節約を愛していると思います。日中は多くのクラスとメンバーを作成するgetters必要があり、それらすべてを手動で作成する必要はありません。 タスクはgetters、すべてのクラスメンバーに対して自動的に生成されるプログラムまたは関数を作成することです。 入力 私たちの言語では、オブジェクトは非常に単純です。クラスおよびメンバーの名前は、文字から始まる必要[a-zA-Z]があり、文字のみを含めることができます[a-zA-Z0-9]。以下に例を示します。 class Stack { public overflow; protected trace; private errorReport; } 出力 これは、指定された例に基づいた有効な出力です。 class Stack { public overflow; protected trace; private errorReport; public function getOverflow() { return this->overflow; } public function getTrace() { return this->trace; } public function getErrorReport() { return this->errorReport; } } ゲッター getterメソッドの要件は次のとおりです。 …
13
code-golf
string
syntax
code-golf
math
primes
rational-numbers
code-golf
graphical-output
image-processing
code-golf
kolmogorov-complexity
music
audio
code-golf
string
code-golf
math
geometry
code-golf
math
sequence
combinatorics
code-golf
game
grid
board-game
code-golf
restricted-source
array-manipulation
source-layout
code-golf
base-conversion
binary
code-golf
math
physics
code-golf
math
number
date
expression-building
code-golf
array-manipulation
graph-theory
decision-problem
popularity-contest
error-correction
code-golf
kolmogorov-complexity
geometry
grid
code-challenge
arithmetic
combinatorics
set-partitions
code-golf
kolmogorov-complexity
sequence
fibonacci
code-golf
restricted-source
pristine-programming
code-golf
code-golf
string
kolmogorov-complexity
code-golf
arithmetic
code-golf
string
parsing
code-golf
code-golf
sorting
counting
permutations
3d
code-golf
code-golf
ascii-art
music
code-golf
string
code-golf
string
ascii-art
code-golf
string
code-golf
quine
polyglot
code-golf
math
string
code-golf
internet