I'm afraid you need to go back to school -- this isn't an Android question but a basic OO programming question.
On Oct 26, 5:01 pm, zeeshan mirza <zeeshan.nabeel.mi...@gmail.com> wrote: > Hello Friends, > > My Question is, why do we create inner classes or subclasses in > android. Like the following example > > public class mainClass extends SomeClass implements SomeInterfaces{ > Some variables declaration ... > public class subClass extends SomeOtherClass { > public SomeInterface someMethod() { > return mainClass.this; > } > } > > } > > Can we create this subClass as an individual class and later on use > its methods in mainClass? if not Why? > > //Zeeshan -- 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