All Questions
2
questions
-1
votes
3
answers
416
views
Java Overridden method visibility scope
How is the following program correct?
abstract class Calculate
{
abstract int multiply(int a, int b);
}
public class Main
{
public static void main(String[] args)
{
...
0
votes
1
answer
499
views
Java method that can't be callable but can be overridden
If I don't want that a method on my class can be called, I just make it private.
But if I want to allow that method to be overridden, I have to make it protected
Is it possible to have a method on ...