How can I get the functions of each weapon by using AActor?

Good day, i have a question. I put all my weapon to TArray, but all this weapons have different Class Name, how can i get the functions of each weapon by using AActor?

To get the class information you can just call GetClass(), that will return the UClass for an AActor.

so as I thought, thank you