When you create a new class, why must you always say for example:
class Main extends Activity { ... }
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.
You don’t. When you create a new
Activity, it must extendsActivity, but you may create any other class as well.Extending
Activitygives you the ready-made UI and resources management and allows the zigote to instantiate you as a GUI application.