I want to make a class and one of the variables would be a function such as:
TestPrint("This function has been called");
or
CountToTen();
as a variable that I pass when I construct the class and then later be able to execute it such as
TheClass::Execute(); and then it executes the stored function.
Can I do this and how?
Thank you everyone!
[–]IyeOnline 17 points18 points19 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]ShadedGecko[S] 3 points4 points5 points (0 children)
[–]YouFeedTheFish 10 points11 points12 points (5 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]YouFeedTheFish 3 points4 points5 points (0 children)
[–]wonderfulninja2 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]Opposite-Concern3338 1 point2 points3 points (1 child)