Subscribe

RSS Feed (xml)

General Form of a Generic Class

The generics syntax shown in the preceding examples can be generalized. Here is the syntax for declaring a generic class:

class class-name<type-param-list> { // ...

Here is the syntax for declaring a reference to a generic class:

class-name<type-arg-list> var-name =
      new class-name<type-arg-list>(cons-arg-list);

Technorati :

No comments:

Post a Comment

Archives

LocalsAdda.com-Variety In Web World

Fun Mail - Fun in the Mail