voddan
you can make String implement some interface and pass this extended code to a method that accepts this interface as an argument
String