Basic ConceptsClass - Blueprint, used to create instances ofitselfObject / Instance - Instances are classoccurrencesMethod - Function / Procedure of an objector classAttribute - Fields with values (objects) in aobject
ProsCode decoupling, enforces code reusabilityAssociates data structures with their relatedmethodsMakes real-world object representationeasier
InheritanceClasses can extendother classes They inherit their attributes and methods Can extend only one class
name Human surname Walks, Sleeps sex no of toys job position Kid school grade Adult companyPlays, Cries no of friends Works vat no Example
The mystery, explained... Complete software stack Operating System Middleware Key Applications Open Source Developed by the Open Handset Alliance Fastest growing market Platform with the most devices activations
ActivityCreates a window, so that the user caninteract with the appCan communicate with the systemControls the higher level of the userinterface
Activity, get a life!The lifecycle of an Activity is really important.Listen to Lifecycle events, inorder to save and reproduce the state of the app
Tasks for next time1. Create an application 3. When the button is that asks for the user’s pressed, a clear button name appears that resets everything2. Then, after hitting a button, it populates a Hint: Check the text view with a following classes: personalized message TextView, EditText, for the user Button and OnClickListener
Gostou de algum slide específico?
Recortar slides é uma maneira fácil de colecionar informações para acessar mais tarde.