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