subject

Melissa is working on her Cell class by adding new methods. However, in her most recent version, she is receiving errors in some of her methods. Select the header of the method that is giving her trouble. public class Cell
{
private int chromosomes, rna;
public double time, h2o;
private static int cellCount = 0;
private static double mCount = 4.0;

public Cell()
{
chromosomes = 23;
rna = 1;
h2o = 2.0;
mCount = rna/h2o;

cellCount++;
System. out. println("There are now " + cellCount + " cells");
}

public Cell(int a_chromosomes, int a_rna, double a_h20)
{
this();
chromosomes = a_chromosomes;
rna = a_rna;
h2o = a_h20;
mCount = rna/h2o;

cellCount++;
System. out. println("There are now " + cellCount + " cells");
}

public void printInfo() {
System. out. println("chromosomes: " + chromosomes);
System. out. println("rna: " + rna);
System. out. println("h2o: " + h2o);
}

public int getChromosomes()
{
if (chromosomes = cell_2.get_mCount()) {
return cell_1;
} else {
return cell_2;
}
}
}

A. public Cell(int a_chromosomes, int a_rna, double a_h20)
B. public int getChromosomes()
C. public double get_mCount()
D. public static Boolean getLargerCell_mCount(Cell cell_1, Cell cell_2)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:20
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
You know the right answer?
Melissa is working on her Cell class by adding new methods. However, in her most recent version, she...
Questions
question
Mathematics, 25.10.2019 19:43
question
History, 25.10.2019 19:43
question
Mathematics, 25.10.2019 19:43
question
Biology, 25.10.2019 19:43
question
Mathematics, 25.10.2019 19:43
Questions on the website: 13722359