cindy wrote:
> onCreate is defined as a protected function in Activity. But for all
> the sample code,  in the class extends from
> Activity class, it has been declared as public function.
> 
> @Override
>  public void onCreate(Bundle icicle) {
> super.onCreate(icicle);
> ..}
> 
> Is that uncommon?

You can always relax the protection on a method, but you cannot increase
it. So, you can override a protected method with a public one, but you
cannot override it with a private one, for example.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to