maciekfinfand3662 maciekfinfand3662
  • 19-07-2019
  • Computers and Technology
contestada

An abstract method ____.

is any method inthe abstract class
cannot beinherited
has nobody
is found in asubclass and overrides methods in a superclass using the reservedword abstract

Respuesta :

Branta Branta
  • 24-07-2019

Answer:

has no body.

Explanation:

An abstract method is a method which has no body.

It is contained in a class which is marked as abstract.

The implementation of such method is specified in a subclass.

For example:

//abstract class

abstract class myClass{

  /* Abstract method */  

  public abstract void mymethod(int a, int b);

}

//Concrete class extending abstract class

class Concrete extends myClass{

  public void mymethod(int a, int b){

return a+b;

  }

}

Answer Link

Otras preguntas

Is surface area 3-dimensional?
The sequence 2, 8, 32, 128, ... is:
Who participated in the Montgomery bus boycott
WILL GIVE BRAINLIEST!!Which graph shows the following system of equations and its solution? -4x-3y=4 4x-y=-4
Which of the following contributed to the collapse of the Soviet Union? Select the two correct answers. A. George H.W. Bush took a hands-on approach to undermin
I need help please and thank you
During World War II, all of the following were Allied advances in intelligence-gathering EXCEPT the! O a. introduction of punched-hole card technology, b.creati
You friend asks you to help him study and will pay you 5 dimes the first time you help him.You agree to help if he multiples your payment by 5 for each study se
Which expression is represented by the model?
Which attributes are employers looking for to be successful? Choose all that apply A. Organizing your time effectively. B. Making personal connections C. Thin