I ma new in OOD and working on Academic project. I am facing a problem while programming it.
The scenario is that I have a main class in which I have made an object of "login" class and call its function.
Now in that "login" class function I create an object of jFrame class to show a login view, where user enters the login info and press login button.
Now I want that when user press login button I should pass that info to an authenticate function in my "login" class.
The problem is that how can I call that function (its a non-static function), and upon invalid info call a function of jFrame class to show error message.
And I want to do this function calling all over in my project.