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
' draws the line of given 'length'
class square from line
var area
method draw
' draws the square of given 'length'
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.