ClassName objectName = new ClassName();
Car mycar = new Car();
public class Multiplication{
public static void main(String[] args){
Multiplication multi = new Multiplication();//Object creation
}
}
class Fruit
{
public static void main(String args[])
{
function nameFruit()
{
System.out.println("Orange");
}
}
}
Fruit f = new Fruit(); //make object of fruit
f.nameFruit();
className object = new className();
// for Bicycle class
Bicycle sportsBicycle = new Bicycle();
Bicycle touringBicycle = new Bicycle();
SinifAdi sinifAdi = new SinifAdi();