Syntaxe Java pour la création d'objets
ClassName objectName = new ClassName();
Muhammad Farooq Afzal
ClassName objectName = new ClassName();
className object = new className();
// for Bicycle class
Bicycle sportsBicycle = new Bicycle();
Bicycle touringBicycle = new Bicycle();
public class Multiplication{
public static void main(String[] args){
Multiplication multi = new Multiplication();//Object creation
}
}
SinifAdi sinifAdi = new SinifAdi();