/Users/johnr/Desktop/IA_14_-_Stage_P_Upload_all_2021-04-08/CS IA Shoe Reselling Aryan April 6th /src/MensShoe.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 
 7 /**
 8  *
 9  * @author 19808
10  */
11 public class MensShoe extends Shoes{
12     private double mensSize = -1;
13     
14     //Overloaded constructor method
15     public MensShoe(){
16     
17     }
18     
19     //Extends shoes class to create another specifically Mens shoe
20     public MensShoe(String name, double size, double buyingPrice, double sellingPrice, int shoeDateBoughtDay, int shoeDateBoughtMonth, int shoeDateBoughtYear, String datebought, int shoeDateSoldDay, 
21             int shoeDateSoldMonth, int shoeDateSoldYear, String collaboration, String brand, double profitability, String gender, double mensSize){ 
22         super(name, size, buyingPrice, sellingPrice, shoeDateBoughtDay, shoeDateBoughtMonth, shoeDateBoughtYear, datebought, shoeDateSoldDay, 
23             shoeDateSoldMonth, shoeDateSoldYear, collaboration, brand, profitability, gender);
24         this.mensSize = mensSize; 
25     }
26 
27     //Get Methods: There is no precondition other than a need to be called, and for the attribute to have data assigned. 
28     //Otherwise the post condition would be that the program retrieves the necessary attribute that is desired.
29     public double getMensSize() {
30         return mensSize;
31     }
32     
33     //Set Methods: 
34     //Pre-condition: The methods has a precondition of having the specifc attribute inputted by the user. 
35     //Post-condition: The program would put and associate it with the variable name for the attribute.
36     public void setMensSize(double MensSize){
37         this.mensSize = mensSize;
38     }
39 }
40