a ▁class ▁▁▁▁ ▁public ▁class ▁Count ed Inst ances ▁▁▁▁ ▁{ ▁▁▁▁▁▁▁▁ ▁// Static ▁variable ▁- ▁this ▁will ▁be ▁increment ed ▁once ▁per ▁instance ▁▁▁▁▁▁▁▁ ▁public ▁static ▁int ▁C ounter ; ▁▁▁▁▁▁▁▁▁ ▁// simple ▁constructor ▁▁▁▁▁▁▁▁ ▁public ▁Count ed Inst ances () ▁▁▁▁▁▁▁▁ ▁{ ▁▁▁▁▁▁▁▁▁▁▁▁ ▁// in cre ase ▁counter ▁by ▁one ▁during ▁object ▁instanti ation ▁▁▁▁▁▁▁▁▁▁▁▁ ▁Count ed Inst ances . Counter ++; ▁▁▁▁▁▁▁▁ ▁} ▁▁▁▁ ▁} ▁▁▁ ▁// main ▁code ▁entry ▁point ▁▁ ▁// at ▁the ▁end ▁of ▁execution , ▁Count ed Inst ances . Counter ▁= ▁ 2 ▁▁ ▁Gen Test < int > ▁g 1 ▁= ▁new ▁Gen Test < int >( 1 ); ▁▁ ▁Gen Test < int > ▁g 1 1 ▁= ▁new ▁Gen Test < int >( 1 1 ); ▁▁ ▁Gen Test < int > ▁g 1 1 1 ▁= ▁new ▁Gen Test < int >( 1 1 1 ); ▁▁ ▁Gen Test < double > ▁g 2 ▁= ▁new ▁Gen Test < double >( 1 . 0 ); ▁ ▁Gener icity ▁in ▁Del phi ▁Del phi ' s ▁Object ▁Pascal ▁dialect ▁acquired ▁gener ics ▁in ▁the ▁Del phi ▁ 2 0 0 7 ▁release , ▁initially ▁only ▁with ▁the ▁( now ▁dis cont in ued ) ▁. NET ▁compiler ▁before ▁being ▁added ▁to ▁the ▁native ▁code ▁in ▁the ▁Del phi ▁ 2 0 0 9 ▁release . ▁The ▁semantics ▁and ▁capabilities ▁of ▁Del phi ▁gener ics ▁are ▁largely ▁model led ▁on ▁those ▁had ▁by ▁gener ics ▁in ▁. NET ▁ 2 . 0 ,