No Output. No return type for constructor.
To use a non-static method, we need to create an object of the class that the method belongs to. so without creating an object we cant access the method,,,Hence no output....
be referenced from a static content : without using static raise an error
Like this video
When you remove void you get output from constructor
Create object and call the method
CTE... Because its not interface its a class so we must use acess specifier..
No output..bcz there is no object by calling
Isn’t it a constructor? Why wouldn’t it be called when you have written new Test() already?
No output because to we have not created an object only we have called to method.
Test can not be resolved to a type..👾
No output...In case of void test we use the static keyword then we will get the output
Error❌
It is a function which is not called so no output
Link this video'
No output
No out put
Not print any o/p
Error
@singamhariharan7459