Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java make object

class Fruit
{
	public static void main(String args[])
    {
      function nameFruit()
      {
      System.out.println("Orange");
      }
    }
}
Fruit f = new Fruit();		//make object of fruit
f.nameFruit();
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #java #object
ADD COMMENT
Topic
Name
7+7 =