Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

class declaration in java

public class Multiplication{ //Class name declaration
int x = 5; //Variable declaration
int y= 15;
public void multi(){ //Method declaration
int z = x*y;
}
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #class #declaration #java
ADD COMMENT
Topic
Name
8+5 =