trying to create an object from different classes with composition relationship

i'm trying to do my university project but the problem with my code is such: I made a class called Booking it has attributes and a constructor,Booking has a composition relationship with class Client. next class called Company and it has a composition relationship with Booking, as well another abstract class called vehicle, inside company I created a method and in it a bunch of operations, then I tried to create an object from class Booking but errors keeps showing. syntax is right i think??

 Booking bookings = new Booking(int period,int personCapicity,Client client, Vehical vehical, int days, String Status, int id);

this object is inside an if statement

heres what is in the error note

'class' expected

';' expected

not a statement

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum