This is the Skeleton of my current class
class JokeTemplates
{
public function CheckTemplateCategory()
{
}
public function SubmitUserTemplates()
{
}
Public function ShowUserUploadedTemplates()
{
}
public function ShowUSerFOrwardedTemplates()
{
}
public function ShowAllTemplates()
{
}
}
In future i may have to design many such classes like LoveTemplates,FriendshipTemplates,BirthdayTemplates..etc In which some of the functions like SubmitUserTemplates, ShowUserUploadedTemplates, ShowUSerFOrwardedTemplates may remain same While functionality of some of function Like ShowAllTemplates,CheckTemplateCategory etc. may change.
IF i create all the functions(copy-paste) in my all classes ,it will lead to huge code redundancy. How should i design my code to reduce redundancy.