On Jul 29, 2009 12:47pm, Alfredo Torres <[email protected]> wrote: > Hi all,
> in this one i am totally lost, Could anyone help me to understand how > could i extend an object type to a type > Any help would be apreciated > -- > Saludos > Alfredo Torres You cannot extend a String into a Long. Those are both primitive types. You could extend a string into a MyString, or a Long into a MyLong. Extending a class is used to make a new class, to add functionality to it, to customize it. Not to convert from one established type to another. BlackRook --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
