Make sure your custom class is public, has a public zero-argument constructor, and that the constructor chains to the superclass’ constructor.
Make sure your custom class is public, has a public zero-argument constructor, and that the constructor chains to the superclass’ constructor.