This topic contains a solution. Click here to go to the answer

Author Question: Consider the following declaration for a class A.class A { private int x; private int y; public ... (Read 212 times)

@Brianna17

  • Hero Member
  • *****
  • Posts: 550
Consider the following declaration for a class A.

class A {
private int x;
private int y;
 
public A(int x, int y) {
this.x = x;
this.y = y;
}
}

Class B is a subclass of A. Which of the following can be constructors in B?

I:
public B() {
}

II:
public B(int x, int y) {
super(x, y);
}

III:
public B() {
super(0, 0);
}

IV:
public B(int x, int y) {
this.x = x;
this.y = y;
}

◦ I
◦ II
◦ III
◦ IV


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by @Brianna17 on May 6, 2020

Sammyo

  • Sr. Member
  • ****
  • Posts: 329
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 35% of students answer this correctly




@Brianna17

  • Member
  • Posts: 550
Reply 2 on: May 6, 2020
Gracias!


parker125

  • Member
  • Posts: 332
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

Women are 50% to 75% more likely than men to experience an adverse drug reaction.

Did you know?

In 2012, nearly 24 milliion Americans, aged 12 and older, had abused an illicit drug, according to the National Institute on Drug Abuse (NIDA).

Did you know?

Aspirin is the most widely used drug in the world. It has even been recognized as such by the Guinness Book of World Records.

Did you know?

Ether was used widely for surgeries but became less popular because of its flammability and its tendency to cause vomiting. In England, it was quickly replaced by chloroform, but this agent caused many deaths and lost popularity.

Did you know?

About 80% of major fungal systemic infections are due to Candida albicans. Another form, Candida peritonitis, occurs most often in postoperative patients. A rare disease, Candida meningitis, may follow leukemia, kidney transplant, other immunosuppressed factors, or when suffering from Candida septicemia.

For a complete list of videos, visit our video library