Hello,
I'm running into an issue in development - I have an include that is utilized by several programs.
I want to use the functions in this include for one of my classes. However, we can only define methods within classes so I can't simply inject the include in my class and utilize the functions in the include.
Is there a way to invoke the functions in the include from my class without having to create another class and converting all these functions into methods solely for my one class that requires it ?
I am trying to avoid having duplicate code.. obviously not the best programming practice.
Any suggestions would be great.
Thanks for you time,
Tyler
I'm running into an issue in development - I have an include that is utilized by several programs.
I want to use the functions in this include for one of my classes. However, we can only define methods within classes so I can't simply inject the include in my class and utilize the functions in the include.
Is there a way to invoke the functions in the include from my class without having to create another class and converting all these functions into methods solely for my one class that requires it ?
I am trying to avoid having duplicate code.. obviously not the best programming practice.
Any suggestions would be great.
Thanks for you time,
Tyler