Q52.webp
N

Q52.webp

  • Media owner Nobara81
  • Ngày thêm
Kizspy Question: 52
(Choose 1 answer)
Consider the following code. What is its purpose within an MVC architecture?
public class LoginController {
private Login View view;
private LoginModel model;
public LoginController(LoginView view, LoginModel model) {
}
this.view view;
this model model;
public void perform Login(String username, String password) {
if (model.is ValidUser(username, password)) {
view.showLoginSuccess();
} else {
view.showLoginError();
A. The Controller handles user input and updates the View based on the Model's data
B. The Controller directly updates the Model
C. The View handles the business logic
D. The Model updates the View directly
  • Like
Reactions: Quangdung

Thông tin

Category
PRM392
Thêm bởi
Nobara81
Ngày thêm
Lượt xem
4,417
Lượt bình luận
21
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom