You are trying to call the constructor of object with a String.
The
Object class only has a single empty constructor so you can only use
public Cars(String str) {
super();
}
If you want to keep the value of str you will need to store it in a member variable which you define in the Cars class.
Hope that sorts you out.
