Is it possible to extend a class in java while retaining the original name? if now can i add to that class extra functions(note this class is provided by the android sdk, its the view class)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, classes in Java are not “re-openable”. An extension is a new class.
(With a caveat that through treachery you might be able to add bytecode, but nothing would be able to access it at compile-time.)