“Actual or formal argument lists differs in length”
You try to instantiate an object of the Friends class like this: The class does not have a constructor that takes parameters. You should either add the constructor, or create the object using the constructor that does exist and then use the set-methods. For example, instead of the above: