-> accelerate() -> accelerate() -> accelerate() -> changeGearUp() -> accelerate() -> accelerate() -> accelerate() -> accelerate() -> accelerate() -> accelerate() -> changeGearDown() -> changeGearDown() -> changeGearDown() -> changeGearDown() -> changeGearDown() -> changeGearDown();*/ //var_dump($seatToledo -> isMoreExpensive($seatAlthea)); //var_dump($georgi); //$georgi -> sellCarForScrap(); //var_dump($georgi); //$carShop = new CarShop($seatAlthea,$seatToledo); //$carShop -> nextCar(); //$carShop -> nextCar(); $ivan = new Persons('ivan', 23, 0124, true, 20000); //$carShop -> sellCar($ivan); //var_dump($ivan); //$carShop ->showAll(); //$carShop -> sellCar($georgi); //$carShop ->showAll(); $georgi->setFriends($ivan); var_dump($georgi);