Allan Caine
1 min readDec 13, 2018

--

I agree with you. In the case of an Android application, subclassing Activity is the only approach. Certainly, there are appropriate uses of inheritance. As illustrated in this article, when trying to enlarge the functionality of an existing class, composition is generally better than inheritance.

You raise a valid point. Thank you for your comment.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Allan Caine
Allan Caine

Written by Allan Caine

Senior Android Developer, TD Bank (Canada) (Opinions are my own)

No responses yet

Write a response