I have this trouble. Im working with some library, and i need to create an istance of a class that is an interface.
- If i do
this.createITextArea()it will create the object. - If i do
ITextArea area = new ITextArea()i can’t, because the class is abstract.
In fact, i need to send it trought a function. But with first method i can’t, or i don’t know how to get the variable for that class. How can I pass it?
I need somethings like area=this.createITextArea(), so i can use the variable area in the function…
Hope the question is clear…
So what’s the problem with this:
?