logo

Crowdly

Analiza codului – Ce afișează? Ce afișează următorul cod? interface A { ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Analiza codului – Ce afișează?

  1. Ce afișează următorul cod?

interface A { void salut(); }

 

class B implements A {

    public void salut() {

        System.out.println("Salut din B");

    }

}

 

public class Main {

    public static void main(String[] args) {

        A obiect = new B();

        obiect.salut();

    }

}

More questions like this

Want instant access to all verified answers on moodle1.ceiti.md?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!