Make accept() static and you can call it with class name directly.
Static functions doesn't require object to call them they can be called using the class name only.
static functions are called...
Type: Posts; User: Bhawani
Make accept() static and you can call it with class name directly.
Static functions doesn't require object to call them they can be called using the class name only.
static functions are called...
practical knowledge and logical thinking matters a lot. AFAIK theory doesn't help you in getting the job
You have defined the newStudent inside the addStudent() and you are accessing the newStudent in showSubject(). This is the root of problem.
Either pass newStudent to showSubject() or declare...
well it can be done like this:
Create a jscrollpane
add panel to it
Set the layout of panel to your desired layout
connect to database and get the number of rows or tuples.
call addRadioBtn(your...
The output will be :
x c g
First the static block will print, then the constructor, and finally the go() will print
You can have as many constructor you want in your class. There is no restriction on it.
@avistein You haven't defined a default constructor for the class.
You have defined the parameterized constructor for your class and when there is a parameterized constructor in the class then you...