|
-
January 22nd, 2001, 01:40 AM
#1
typedef in JAVA???
Does any body know what is the correspondence method in JAVA to typedef in C++?
For example, it is supposed that L_Handle have the same data type with int. In C++, it can be obtained as follows:
typedef L_Handle int
what should i do in JAVA?
I tried to use "extends" such as
public class L_Handle extends Integer{}
however, the above code is not working cos Integer is a final class and thus cannot subclass.
if anybody knows how, please mail to me.
thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|