Class Files?

Is it possible to do like C++ and create a separate class file where I can store and pull data from?
A before hand Thanks,
Fydus…