Hi Ashish,
Instructor
Ashish Thakur Replied on 17/06/2020
void() - there is nothing known as void()
its only 'void'
void means that function has no return type
public void xyz(){} - this function returns nothing
public int xyz(){ return 100 ; } - this returns 100
public - this is access specifier. ust watch video on access specifier and it will be clear to you