ribot / android-guidelines

Architecture and code guidelines we use at ribot when developing for Android

Home Page:http://ribot.co.uk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Where should abstract methods go in terms of logical ordering?

erseno opened this issue · comments

Hello all

First, I am very thankful to those who wrote this guide, I have been looking to improve my coding standard and have been following this and thus far found it very useful .

I have a question regarding this section

https://github.com/ribot/android-guidelines/blob/master/project_and_code_guidelines.md#2210-class-member-ordering

Where should abstract method declarations go in relation to ordering
For example in a base activity class

public abstract class BaseActivity extends AppCompatActivity implements FragmentManager.OnBackStackChangedListener {

    public abstract String getScreenNameForAnalytics();

}

Thanks for reading

Ersen

Follow the "Public" section?

There isn't any specific rule in this guidelines about abstract methods. You can think about them as normal public methods.

Thanks guys :)