Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

UML CLASS DIAGRAM

UML Class Diagram into a Java code


public class ADMIN
{

public int userId;


public String userName;
public String userPasword;

public void viewProduct()


{

public boolean addProduct()


{
return true;
}

public void updateProduct()


{
return true;
}

public void deleteProduct()


{

public boolean makeDelivery()


{
return true;
}

public boolean confirmDelivery()


{
return true;
}
}
public class Products
{

public int productID;


public String productName;
public String productType;
public int productPrice;

public class COSTUMER


{

public int costumerID;


protected String name;
protected String address;
protected int phoneNumber;

public boolean buyProduct()


{
return true;
}

public void viewProduct()


{

public boolean makePayment()


{
return true;
}

public boolean addToCart()


{
return true;
}

public void deleteFromCart()


{

}
}

public class PAYMENT


{

protected int costumerID;


public String productName;
public int productPrice;
private String cardType;
private int cardNum;

public class CART


{

private int ID;


protected productName;
protected float productPrice;
protected String productDetails;
protected float total;

You might also like