diff --git a/mvc-mvp/src/com/baeldung/mvp/MvpMainClass.java b/mvc-mvp/src/com/baeldung/mvp/MvpMainClass.java index f40cccca74..98b616219d 100644 --- a/mvc-mvp/src/com/baeldung/mvp/MvpMainClass.java +++ b/mvc-mvp/src/com/baeldung/mvp/MvpMainClass.java @@ -6,10 +6,10 @@ public class MvpMainClass { Product model = retrieveProductFromDatabase(); ProductView view = new ProductView(); - ProductController controller = new ProductController(model, view); - controller.showProduct(); - controller.setProductName("SmartPhone"); - controller.showProduct(); + ProductPresenter presenter = new ProductPresenter(model, view); + presenter.showProduct(); + presenter.setProductName("SmartPhone"); + presenter.showProduct(); } private static Product retrieveProductFromDatabase() { diff --git a/mvc-mvp/src/com/baeldung/mvp/ProductController.java b/mvc-mvp/src/com/baeldung/mvp/ProductPresenter.java similarity index 90% rename from mvc-mvp/src/com/baeldung/mvp/ProductController.java rename to mvc-mvp/src/com/baeldung/mvp/ProductPresenter.java index 5cf32b3f0b..b9549026a9 100644 --- a/mvc-mvp/src/com/baeldung/mvp/ProductController.java +++ b/mvc-mvp/src/com/baeldung/mvp/ProductPresenter.java @@ -1,10 +1,10 @@ package com.baeldung.mvp; -public class ProductController { +public class ProductPresenter { private final Product product; private final ProductView productView; - public ProductController(Product product, ProductView productView) { + public ProductPresenter(Product product, ProductView productView) { this.product = product; this.productView = productView; }