I've looked all over and ive not found a good answer, is there a way you can take your functions and make them in seprate files and call them to the class? it seems no one has tried this or i am ooking in the wrong place
daniel.conlinjr.1 0 Light Poster
Recommended Answers
Jump to PostYou want to put parts of a class in a separate file? Yes, that's possible (using
include
), but I don't recommend it (bad design). Better yet, give a code example explaining what part you want to move to a separate file.
Jump to Postim trying not to get a long file
That shouldn't matter. The class has a purpose, and chopping it into pieces doesn't make it easier to maintain. Consider a book where every page is on a different shelve.
All 7 Replies
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
daniel.conlinjr.1 0 Light Poster
AARTI SHRIVAS 2 Posting Pro in Training
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster

diafol
daniel.conlinjr.1 0 Light Poster

diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.