Confusion with returning UriParser

Good evening,
in create() I’m trying to return my UriParser with this line of code:
return new UriParser(Scheme,UserInfo, Host, Path, Query);
Each of those is a string. However, it’s telling me that UriParser is an uninstantiated type. What do I need to do to make it work?
Thanks in Advance!

UriParser (from is an interface.
You can not directly instantiate interfaces.

Subsection 8.7.1: Interfaces

Instead, you have to write a class that implements that interface.
For instance, UriParserImplementation as done in You then also need to add a constructor that does what you want it to do.