private Boolean _warranty;          //Bike warranty

        public Bike()
        {
            _frame        = new Frame();
            _groupSet     = new GroupSet();
            _wheels       = new Wheels();
            _finishingSet = new FinishingSet();
            _warranty     = false;
        }
Пример #2
0
 public double calculateFinalCost(Frame frame, GroupSet gs, FinishingSet fs, Wheels wheels)
 {
     return(100.0 + frame.Cost + gs.Cost + fs.Cost + wheels.Cost);
 }