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

Raymond wants to make a box that has a volume of 360 cubic inches. He wants the height to be 10 inches and the other two dimensions to be whole number of inches
what is the capital of iowa
Write a division problem whose quotient has its first digit in the hundreds place
Where in t he constitution are the 6 reasons found?
When did buddhism emerge in south asia? a.100 bc b.500 bc c.1500 bc d.5100 bc?
The ordered pairs (1, 1), (2, 8), (3, 27), (4, 64), and (5, 125) represent a function. What is a rule that represents this function? A. y = x B. y = 4x C. y = x
Is 168/54 in simplest form?
which of the following sentences contains a action verb A. my sister lost her computer yesterday B. its disapearence seems strange to me C. martha feels sad
whats a process that keeps food safe and clean
Which line is parallel to a line that has a slope of 3 and a y-intercept at (0, 0)? line AB line CD line FG line HJ