![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 22.12.2021 06:50 dillon100097
Class aggregate" is incorrect. choose the correct line so that this program prints:
granite: weight=25.0 value=4 numkind=7
public class inherit
{
abstract class stone
{
protected float weight = 13;
protected int value = 4;
abstract public string tostring( );
}
class aggregate
{
protected int numkind;
}
class granite extends aggregate
{
granite( )
{
weight = 25; numkind = 7;
}
public string tostring( )
{
return "granite: weight="
+ weight + " value="
+ value + " numkind="
+ numkind;
}
}
inherit( )
{
granite g = new granite( );
system. out. println(g);
}
public static void main(string[ ] args)
{
new inherit( );
}
}
a. abstract class aggregate {
b. abstract class aggregate extends granite {
c. abstract class aggregate extends stone {
d. class aggregate extends stone {
e) none of the above
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 22:30, MoneyMike42
Alex’s family members live in different parts of the world. they would like to discuss the wedding plans of one of their distant relatives. however, alex wants all the family members to talk to each other simultaneously so that they can make decisions quickly. which mode of internet communication should they use? a. blog b. email c. wiki d. message board e. instant messaging
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 15:00, victordhernandez01
Jake really works well with numbers and is skilled with computers but doesn't work well with others. which of the jobs discussed in this unit might be best for jake? why?
Answers: 3
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 17:00, ayoismeisjjjjuan
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
You know the right answer?
Class aggregate" is incorrect. choose the correct line so that this program prints:
granite: weig...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 09.01.2021 06:50
![Konu](/tpl/images/cats/en.png)
English, 09.01.2021 06:50
![Konu](/tpl/images/cats/mat.png)
Mathematics, 09.01.2021 06:50
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/es.png)
![Konu](/tpl/images/cats/es.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 09.01.2021 06:50
![Konu](/tpl/images/cats/istoriya.png)
History, 09.01.2021 06:50
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/biologiya.png)
Biology, 09.01.2021 06:50