Extend fisica FBody
in
Contributed Library Questions
•
10 months ago
Hi everybody!
And since the subclasses FCircle etc.. are build on top of original FBody they ignore my methods and tells me that the functions doesn't exist.
I need to extend FBody class of the library fisica.
But If i add my new methods, they aren't inerithed by FBody subclasses: FCircle, FBox etc...
For example
- class MyFBody extends FBody
- {
- //constructor
//methods
void myMethod()
{
//do something - }
- }
- FCircle circle = new FCircle(10);
- circle.myMethod();
error: The function myMethod() does not exist.
How can I solve that?
1