Product is a namespace but is used as a type [closed]

1

I have this error message:

  

Product is a namespace but is used as a type

It was working and when I got compiled, I'm getting that error. How do I resolve this?

    
asked by anonymous 20.03.2018 / 15:06

1 answer

3

You have a namespace in your project named product, as well as your class.

Probably some folder called product that you added. Modify the folder name for Products in the plural and change the Product names of the files that are inside that folder to their plural Products

    
20.03.2018 / 19:11