You can do:
super.alphaMethod1();
Note, that super
is a reference to the parent class, but super()
is its constructor.
More Related Contents:
- Can't call method from class 1 in class 2 [closed]
- Overriding vs Hiding Java – Confused
- Is it possible to call subclasses’ methods on a superclass object?
- Private members in Java inheritance
- In Java, how do I call a base class’s method from the overriding method in a derived class?
- Why is super class constructor always called [duplicate]
- how to inherit Constructor from super class to sub class
- Java: How to find if a method is overridden from base class? [duplicate]
- Write a function that will sort a string array using Java
- java dice game issues -fast please
- how to create java methods [closed]
- Extends JFrame vs. creating it inside the program
- Why isn’t calling a static method by way of an instance an error for the Java compiler?
- Can overridden methods differ in return type?
- Emulate annotation inheritance for interfaces and methods with AspectJ
- How to call a method stored in a HashMap? (Java) [duplicate]
- Error: Main method not found in class Calculate, please define the main method as: public static void main(String[] args) [duplicate]
- Superclass reference not able to call subclass method in Java
- Can I get all methods of a class?
- Why is constructor of super class invoked when we declare the object of sub class? (Java)
- When do I have to use interfaces instead of abstract classes? [duplicate]
- How can interfaces replace the need for multiple inheritance when have existing classes
- Java: Casting from List to List when B implements A?
- Why we should not use protected static in java
- Making java method arguments as final
- Overriding a super class’s instance variables
- Avoiding parallel inheritance hierarchies
- Java. Implicit super constructor Employee() is undefined. Must explicitly invoke another constructor [duplicate]
- Using a private variable in a inherited class – Java
- How to enable enum inheritance