Re: [android-developers] extend class and constructors

2012-11-29 Thread Lew
Paul-Peter Tournaris wrote: > No you don't need do. But if you want to call the base constructors you > just call super with the appropriate parameters.Also you can create new > constructors for your new class that extends the base one! For example! This is basic Java. Check out http://docs.or

Re: [android-developers] extend class and constructors

2012-11-29 Thread Παύλος-Πέτρος Τουρνάρης
No you don't need do. But if you want to call the base constructors you just call super with the appropriate parameters.Also you can create new constructors for your new class that extends the base one! For example! public class base { public base(){ int i = 0; } }

[android-developers] extend class and constructors

2012-11-29 Thread Simon Giddings
This may seem a bit basic, but I come from a C++ background and it is confusing me a little. When I extend a base class, do I need to create a constructor for each base class constructor ? What I mean is this. Given : public class base { protected int m_iValue; public base() {