Redeclaring data members in extended types

BlitzMax Forums/BlitzMax Programming/Redeclaring data members in extended types

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Why can't you just do something like :
Type A
  Field x:int
End Type

Type B Extends A

  Function Create:B(x:int)
     Local this:B = New B
     this.x = x
     return this
  End Function
End Type


Isn't that the same thing as
class B : public A
{
public:
   B(int x)
    : x(x)
  {
  }
}