Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Creating an Object in Java

className object = new className();

// for Bicycle class
Bicycle sportsBicycle = new Bicycle();

Bicycle touringBicycle = new Bicycle();
Source by www.techopedia.com #
 
PREVIOUS NEXT
Tagged: #Creating #Object #Java
ADD COMMENT
Topic
Name
8+6 =