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();
public class Multiplication{
public static void main(String[] args){
Multiplication multi = new Multiplication();//Object creation
}
}