Do records with methods work in the same way as classes in C++, in the way that they are disposed automatically? :?