This should be simple. I have a custom controller like so
public class MyClass {
.
.
.
public class MyType{
String a;
Integer b;
List<Account> c;
}
.
.
.
}
Now I am trying to instantiate MyType object from a controller extension, like so:
public class MyClassExtension {
public MyClassExtension(MyClass controller) {
// This is where I need help
controller.MyType myTypeObj = new controller.MyType();
}
How do I do this? A couple of syntaxes I tried resulted in errors. TIA.