TB doesn't support modern OOP.
Have a look at the document "Object Oriented Programming in True BASIC" which can be found here:
https://www.truebasic.com/downloads
FreeBasic seems to support real OOP. PowerBasic supports OOP for COM objects only. PureBasic hates OOP.
Maybe you should have a look at this one:
https://www.ionicwind.com/iwbasic.html
VisualBasic (or a clone, e. g. TwinBasic) might be another choice.