Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7491411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:03:00+00:00 2026-05-29T16:03:00+00:00

I have a super super (grandparent) abstract bean class calling loadData() method in its

  • 0

I have a super super (grandparent) abstract bean class calling loadData() method in its init() method like this:

public abstract class BaseFwkPageController extends PageControllerSupport {

    public String init(){
        cleanSession();
        loadData();
        return initNavigation;
    }

    public abstract void loadData();

    // ...
}

now I don’t want this loadData() method to be called in the sub subclass (child). I can’t change the super class. How can I achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T16:03:01+00:00Added an answer on May 29, 2026 at 4:03 pm

    You can’t hide the method, reduce its visibility or prevent anyone from calling.

    However you can do something like this in your subclass:

    @Override
    public void loadData() {
      throw new UnsupportedOperationException("not supported");
    }
    

    Alternatively, you could put in an interface, exposing only what may be called through the interface.

    Interface interface = new Implementation();
    interface.callMethod();
    

    This way you will have complete control.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a super class like this: class Parent { public: virtual void Function(int
I have this super class which extends from another class public abstract class AbstractDOEMessageFinderAction
I have a super abstract class: @XmlSeeAlso({AndQuery.class, OrQuery.class, NotQuery.class, PropertyQuery.class, MultiQuery.class}) @XmlRootElement public abstract
I have a super class: public class SuperClass { public void dosomething() { firstMethod();
I am attempting to cache a class variable like so: Rails.cache.write(@@page_types, @@page_types) This method
I have a super class with telescoping constructors with a finalize() method. To protect
Let's say I have a table that represents a super class, students . And
When using Python's super() to do method chaining, you have to explicitly specify your
In my onCreate method for the first loaded Activity I have: super.onCreate(savedInstanceState); final int
i have this super manual: http://www.arib.or.jp/IMT-2000/V710Dec08/5_Appendix/R99/27/27005-320.pdf i dont understand whether it is for every

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.