Question: 27 Consider the following code: (5 Puan) Interface MyInterface ( } void myMethod(): abstract class MyAbstractClass I abstract void myAbstract Mothod (); class MyClass

27 Consider the following code: (5 Puan) Interface MyInterface ( } void myMethod(): abstract class MyAbstractClass I abstract void myAbstract Mothod (); class MyClass extends MyAbstractClass implements MyInterface ( public void myMethod() ( 1 System.out.println("HyClass - nyMethod"); public void myAbstract Method() { System.out.println("MyClass public class Main ( ByAbstractMethod"); public static void main(String[] args) ( MyClass obj new MyClass(); obi.myNothod(); obi.nyAbstractMethod(): '
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
