Call it inheritance, encapsulation .. etc. I have no qualms for it. What I want is, I am trying to state in below pseudo codes,
class line
var length
method draw
class square from line
var area
method draw
Note, 'length' is in 'line' class and both have 'draw' methods. square class inherits line class.
Now I use them as,
oSquare := class square()
oSquare.length := 10
oSquare.draw()
If we can get it in b4X then I think most of our codes will be concise and clean.
I am using this type of codes in my other programming languages.