Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Is super(); omitted in DayAdapter constructor?

I believe in the constructor of DayAdapter class super() is called but omitted. So, the constructor simply sets two member variables Context and Day[] and leave all the works to super(); Is that true?

Tyler Combs
Tyler Combs
15,525 Points

I don't think there's a superclass for DayAdapter, so I would imagine there's no super(). But in any other case, yes, you can override a super method just to add a little customization to the overridden method, and everything else within the super class's method runs when super() is called.