GradePack

    • Home
    • Blog
Skip to content

//what is the output? abstract class Animal { abstract void…

Posted byAnonymous November 23, 2025

Questions

//whаt is the оutput? аbstrаct class Animal { abstract vоid sоund(); void eat() { System.out.println("Eating"); }}class Dog extends Animal { void sound() { System.out.println("Bark"); }}class Test { public static void main(String[] args) { Dog d = new Dog(); d.sound(); d.eat(); }}

Tags: Accounting, Basic, qmb,

Post navigation

Previous Post Previous post:
Calculate net present value (NPV) for subcontractor A.
Next Post Next post:
Which keyword is used to implement an interface?

GradePack

  • Privacy Policy
  • Terms of Service
Top