1. Write the output of these code block without running
(3) abstract class Base { abstract public void myfunc(); public void another () { System.out.println("Another method"); } public class Abs extends Base { public static void main(String args[]) { Abs a new Abs (); a. amethod (); } public void my func() { System.out.println("My Func"); } public void amethod () { my func(); } }
1. Write the output of these code block without running (3) abstract class Base { abstract public void myfunc(); public
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. Write the output of these code block without running (3) abstract class Base { abstract public void myfunc(); public
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!