Mara G.

asked • 09/24/21

Interface, could someone help me solving this task. Thank you.

Create an interface called: CustomCalculation

It should have a method called: square

It accepts an integer paremeter

Create another class called: ExecutorC

It should implement CustomCalculation interface

This class should override square method to provide below implementation:

It accepts an integer paremeter

Returns square of that number

Create an object from the class and call the square method.

1 Expert Answer

By:

Siva J. answered • 09/25/21

Tutor
5.0 (449)

Experienced in developing DBMS (MySQL, SQLite) applications

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.