1 answer

Im having an issue with the sub class and its super class. i think it might...

Question:



Im having an issue with the sub class and its super class. i think it might have something to do with me not having the super keyword but i do not know its function so i havent implemented it yet


Java Computer public class Computer extends Product int revenge int quantity: double Speed: int boolean w; public Computer (d
Java Sc Product Computer java Product javax & 1 p ublic class Product double price; int stockQuantity: int soluantity: double
Java Computer public class Computer extends Product int revenge int quantity: double Speed: int boolean w; public Computer (double price, int quantity) superprice, quantity public StrintStringit String type: retur cpuSpeed Chur -GRAM V e rwajamadeaProjects/Java/w/Desktop jawa Error: constructor Computer in Computer cannot be co n vento La constructor Computer in Computer cannot bed to give types easant and formal argumentis differing MacBook Pro esc Electronic... > OH BABAAABB caps lock
Java Sc Product Computer java Product javax & 1 p ublic class Product double price; int stockQuantity: int soluantity: double revenue; double cubicFeet: boolean hasFreerer: public Product double price, int quantity) { public double seltunitsint mount) it amount stock Quantity) this.stock Quantity - stockOuantity - amount: return (revenue amount - pricel; } else { Product Messages Users/shirwajama/deaProjects/Java/sr/Desktop Java Error:16, 1161 ja constructor Computer in class Computer cannot be applied to given types required: double int found: no arguments reason actual and formal argument ist differ in length users/shirwajama/IdeaProject Java/src/Laptop.java Error:18. ja constructor Computer in class Computer cannot be applied to give types required: double, int reason actual and formal argument ist dafer in length users/shirwajamalldeaProjects/Java/src/Appliances.java Error, wat constructor Product in class Product cannot be applied to given types: Teangactual and formal argument is offer in length Ogs MacBook Pro esc Electronic. > > # Å S w

Answers

in Appliances class your creating the Objects for
Product and Computer classes with 0 arguments but
These classes does not have the default constructors in italic
that is the reason your getting this error

//Add it in product class
Product(){

}
//Add it in Computer class
Computer(){

}

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me

.

Similar Solved Questions

1 answer
A) There is a NACA 2412 airfoil with a chord length of 6ft. It has a...
a) There is a NACA 2412 airfoil with a chord length of 6ft. It has a 5 degree angle of attack during a sea-level flight at a velocity of 100 ft/s. Calculate the lift and moment (about the quarter chord) per unit span b) What is the profile drag coefficient for the airfoil in part a), as well as the ...
1 answer
ABC Inc. had current earnings and profits of $50,000 when it distributed to an individual shareholder...
ABC Inc. had current earnings and profits of $50,000 when it distributed to an individual shareholder land that the corporation held as an investment. On the date the land was distributed, ABC Inc.’s adjusted basis in the land was $10,000, the fair market value of the land was $50,000, and the...
1 answer
How do you write 24 thousand in scientific notation?
How do you write 24 thousand in scientific notation?...
1 answer
In the book, "In Your Face... All Over the Place": Advertising Is Our Environment, By: Jean...
In the book, "In Your Face... All Over the Place": Advertising Is Our Environment, By: Jean Kilbourne. Kilbourne writes that "advertising corrupts our language and thus influences our ability to think clearly." What evidence does she cite to support her claim?...
1 answer
1. (10 points) Recall from Homework 19 that the weight of a Minion in pounds has...
1. (10 points) Recall from Homework 19 that the weight of a Minion in pounds has PDF given by otherwise (a) (5 points) Use the Central Limit Theorem to estimate the probability that a collection of 100 independent Minions weighs between 80 and 120 pounds. (b) (5 points) How does this compare to the ...
1 answer
A local health department is developing a program to help stop the childhood obesity epidemic in...
A local health department is developing a program to help stop the childhood obesity epidemic in your county. The nurses, nutritionists, epidemiologists, social-workers and other public health officials at the health department recognize that obesity is a problem for children of all ages, not just s...
1 answer
#8 10. Rewrite the nee d ed Part II. Dissolution of malum chloride a water Section...
#8 10. Rewrite the nee d ed Part II. Dissolution of malum chloride a water Section A 1. Initial appearance of equilibrium m e Clear 2. Change after addition of cone HICH cloudy Nhile 3. Change after heating mature for 3-4 min Clear 4. Change after cooling mixture Section B Cloudy White Observations ...
1 answer
The period of the business cycle in which real GDP is increasing is called the:   ...
The period of the business cycle in which real GDP is increasing is called the:    Group of answer choices peak expansion recession stagflation...
1 answer
SELECT ALL THAT APPLY. Which of the following atoms or molecules help comprise the heme center...
SELECT ALL THAT APPLY. Which of the following atoms or molecules help comprise the heme center of the proteins myoglobin and hemoglobin? A. Nitrogen B. Proximal Histidine C. Distal Histidine D. Oxygen...
1 answer
Points will be deducted for incorrect significant figures or incorrect units. Phase changes often cause a...
Points will be deducted for incorrect significant figures or incorrect units. Phase changes often cause a large change in entropy and are somewhat unique in that they occur at a constant temperature. Imagine you have 4.23 moles of liquid methanol, at its boiling point 64.7 °C. The molar enthalpy...
1 answer
Atabular analysis of the transactions made during August 2022 by Cullumber Company during its first month...
Atabular analysis of the transactions made during August 2022 by Cullumber Company during its first month of operations is shown below. Each increase and decrease in stockholders'equity is explained Assets Liabilities Accounts Payable Stockholders' Equity Retained Earnings Cash Common + AR +...
1 answer
How do you find the next two terms of the geometric sequence #-1/4, 1/2, -1, ...#?
How do you find the next two terms of the geometric sequence #-1/4, 1/2, -1, ...#?...
1 answer
The medial and lateral plantar artery branches off of what artery?
The medial and lateral plantar artery branches off of what artery?...
1 answer
2 simplify completely ------- ^-3 3
2 simplify completely ------- ^-3 3...
1 answer
Value of the -variable Remaining time: 152:54 min:sec) Problem 2 (1 point) Alzheimer's disease is a...
value of the -variable Remaining time: 152:54 min:sec) Problem 2 (1 point) Alzheimer's disease is a progressive disease of the brain. An article published in 2006 was critical of the methodology used in studies of Alzheimer's treatments conducted prior to 2006. In a random sample of 28 Alzhe...
1 answer
4. When John enters the bank office, there are four customers waiting in line and one...
4. When John enters the bank office, there are four customers waiting in line and one g served. There is a single distributed with A10 customer per hour, independent of everything else. (a) (2 points) What is the average service time per customer? (b) (4 points) What is the distribution of John'...
1 answer
-2x + x² +15 Q5. Set up the partial fraction decomposition for (x’ +9)*(x+1) DO NOT...
-2x + x² +15 Q5. Set up the partial fraction decomposition for (x’ +9)*(x+1) DO NOT FIND THE CONSTANTS....