posted 23 years ago
Hi!
Java support methods , classes , interface.
methods must be declared in a class. if you want to access the method directly without accessing it through an instance of a class you delcare the method static.
Java supports of course constructors. No struct , no function because methods and function are the same in java. a method can be declared. final , static , private , protected , public abtract , default( no access specifier ) , native. ( Hope I didn't leave anything out. ). You can only have at most one access modifier, that is: public , protected , private.
There is no destructors in java. You can override finialize() and call super.
// Mathias