Capsule component and default constructor errors, please help

I’m not sure why these have errors any help into fixing them would be greatly appreciated