 <p>I copy/pasted your code in my IDE and ran but no problem here! so it's very strange that when you create object B, you get error that object A method (a::helloB()) does'n exist! If you put whole codes (inclusive dbData) i am willing to try it again.. </p>