117k views
2 votes
This is Java! Help is appreciated :)

This is Java! Help is appreciated :)-example-1
User Rynhe
by
6.8k points

1 Answer

3 votes

public class TvShow {

int x;

public TvShow(String showName, int numMinutes){

}

public int getNumActors(String actors){

//method code goes here but since it's just a signature we don't put anything here.

return 0;

}

TvShow show22 = new TvShow("Leave it to Beaver", x);

public double cost(int i){

return 0;

}

public static void main(String[] args) {

}

}

class Tester {

public static void main(String[] args) {

TvShow tv = new TvShow("", 0);

tv.show22.cost(0);

}

}

I hope this helps in some way!

User Cettt
by
6.9k points