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

What is the value of tan A?.
Explain how the commutative property is applied when finding GCF using factor trees
What are the three things that priests are called to do?.
Friend me plssssssssssssssssssssssssssssssssssssss ccccc
Which of the following tables represents a linear relationship that is also proportional? x −3 0 3 y −4 −2 0 x −2 0 2 y 0 3 6 x −3 0 3 y −4 −3 −2 x −3 0 3 y −2
What distance on the map (in centimeters) represents an actual distance of 4 kilometers
Read this excerpt from Amy Tang's "Mother Tongue" and explain what Tang thought about her mother's use of English. Do you think that she approved or disapprove
Can anyone help me on this question please?
Elizabeth has 1 7/10 as many plants as Rosalie has in her garden. If Elizabeth has 51 plants, how many plants does Rosalie have in her garden?
Does temperature affect the viscosity of liquids? (I need for research)