Question: This question is releated to Abstract and interfaces in java What is wrong with this code? public abstract class Alphafpublic class Beta extends Alphaf private
What is wrong with this code? public abstract class Alphafpublic class Beta extends Alphaf private int x; public Alpha(int x)f private int y; public Beta (int y)f this.x = x; thisy = y; public static void main(String argsO) Beta b new Beta(2); Alpha a -new Alpha(3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
