Oxarticle class extend problem

I have extended oxarticle class. From my class whenever I call $this->getPrice()->getBruttoPrice() its showing a fatal error i.e. member func. called on a non-obj, but if i use var_dump on $this->getPrice() its return a oxprice obj. What is the problem? I have faced this kind of problem earlier also and noticed that if extend some class which itself used some class obj then this problem arises. Can anyone provide me a solid solution for it? Thanks in advance.