I'm fairly new to Java and I am coming to it from a C++ background. I am working with a class that has to be extended before it's protected constructor is called. I only need the class in one instance. Is there a way I can dynamically create the class AND instantiate it at the same time?
I found similar posts but not quite hitting the mark. I have the following code as an example but of course it's syntactically incorrect.
final ffd.tokens.CountryTokens cToken = new class USA extends ffd.tokens.CountryTokens
{
USA (String value)
{
super(value);
}
} ("USA");