I am rather sure that this is impossible, but I think I might as well try. I have some existing code which I do not own, and I want to keep my code completely seperate, say this was the original class
public class myClass
{
public static void doStuffs()
{
x = x + 1;
}
}
and the other class had:
public static void setData()
{
//Set the data
}
Is it possible to call doStuffs() when setData() is called without modifying the the actual setData() method? If so how?