Składnia Java do tworzenia obiektów
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();
SinifAdi sinifAdi = new SinifAdi();
public class Multiplication{
public static void main(String[] args){
Multiplication multi = new Multiplication();//Object creation
}
}