home > 比較編 > C, C++, Objective-C, Java, C# > objects >

ForNext

Only Do What Only You Can Do

127. define class method

VBScript

JScript

Perl

PHP

Python

Ruby

PowerShell

Scala

F#

C

C++

declare static in class definition






C++Builder

VC++

C#

declare static in class definition






Java

declare static in class definition






Objective-C

precede definition with +:
+(Rational*) max: (Rational*) a: (Rational*) b {
  if ( a.num * b.denom > b.num * a.denom ) {
    return a;
  }
  return b;
}

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system