aspose file tools
The moose likes Java in General and the fly likes call subclass method in superclass but not the other class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

call subclass method in superclass but not the other class

Jack Lau
Ranch Hand

Joined: Aug 30, 2002
Posts: 166
Hello,

If there is a private method in subclass and I want to call it in the superclass, however, I want the subclass method only called by superclass. I know I can add one public method in subclass and called by superclass but it also cause a security issue.....does anyone know how to do?



Thanks,
Jack
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35252
    
    7
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: call subclass method in superclass but not the other class
 
Similar Threads
Doubt in method overriding in enum
question from Dan's exam - ClassCastException
Casting
Methods
Call subclass method in superclass but not the other classes