Challenge

Project 1

ADMIN CLASS
public class Admin {
private static final String String = null;
private String userid = "";
private String password = "";
private String Loginstatus = "";
private Cart cart;
private java.lang.String loginstatus;

public String getUserid() {
return userid;

}

public void setUserid(String userid) {
this.userid = userid;

}

public String getPassword() {
return password;

}

public void setPassword(String password) {
this.password = password;

}

public void setLoginstatus(String Loginstatus) {

Loginstatus = loginstatus;

}

public Boolean verifyuser() {
return true;
}

public Cart getCart() {
return cart;
}

public void setCart(Cart cart) {
this.cart = cart;
}
}

CART CLASS


public class Cart {
private Products[] listofProducts;

public Products[] getListofProducts() {
return listofProducts;
}

public void setListofProducts(Products[] listofProducts) {
this.listofProducts = listofProducts;
}

public boolean checkOut() {
// TODO Auto-generated method stub
return true;
}
}

CATALOUGE CLASS


public class Catalouge {
Products[] listofAllProducts;
public Products[] getListofAllProducts() {
Products product1=new Products();
product1.setProductid("1");
product1.setProductname("product1");
product1.setCost("100");
Products product2=new Products();
product1.setProductid("2");
product1.setProductname("Product2");
product1.setCost("200");
listofAllProducts[0]=product1;
listofAllProducts[1]=product2;
return listofAllProducts;

}
public void setListofAllProducts(Products[] listofAllProducts) {
this.listofAllProducts=listofAllProducts;

}

}

CUSTOMER CLASS


public class Customer extends User {
private Cart cart;

public Cart getCart() {
return cart;
}

public void setCart(Cart cart) {
this.cart = cart;
}

public Boolean verifyUser() {
return true;

}

@Override
Boolean verifyuser() {
// TODO Auto-generated method stub
return null;
}
}

INTERFACE CLASS


public interface INterface {
public abstract class User{
String userID="";
String password="";
String loginstatus="";
abstract Boolean verifyUser();


}

}

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.