3
good morning.
I’m new to Java, but come on.
I have a java class and need to use all of its methods in another main class.
There’s a problem, I’m already using a extends in both classes.
I need to use all methods of this class(I put in txt for being great):
http://t4web.com.br/MainActivity
In that class:
public class SocialFragment extends Fragment {
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.social_layout,null);
}
}
Is there any way to perform this procedure without calling method by method ?
@Edit
My Mainactivity is my map with all business rules, I need to use it in one of them below.
But I’m in trouble because I’m already using the extends in the 2 classes.
Show what you want to do, you may have it, it depends on what you want. Although I think not without being a monumental gambiarra.
– Maniero
@bigown, I did the editing. Thank you.
– tharley carvalho
@tharleycarvalho you don’t need to flag your question, leave comments for all users to see. Signaling serves to indicate serious problems in a topic.
– Math