Write a class called Date that represents a date consisting of a day, month, and year. A date object should have the following methods: public Date(int day, int month, int year) -- Constructs a new Date object to represent the given date public int getDay() -- returns the day value of this date public int getMonth() -- returns the month value of this date public int getYear() -- returns the year value of this date public void addDays(int days) -- Moves the Date object forward in time by the given number of days public int daysTo(Date other) -- Returns the number of days between this Date and the other Date public boolean isLeapYear() -- Returns true if the year of this Date is a leap year. A leap year occurs when the value of the year is divisible by 4, except when it is divisible by 100 and not 400 (so 1700, 1800, and 1900 are not leap years) public String toString() -- returns a String representation of this date in the form day/month/year Write a program in which to test your class. This program should prompt the user to enter the days, months, and years of two separate dates, and then print out the number of days between these two dates.

Answers

Answer 1

Answer:

No

Explanation:

Because it's years and its also very public


Related Questions

window is a very popular operating system becouse of its _ environment .​

Answers

Window is a vary popular operating system because of its runtime and compatible environment .
hope it help
Windows is perhaps the most popular operating system for personal computers globally. ... Windows is very popular because it is pre-loaded in majority of the new personal computers. Compatibility. A Windows PC is compatible with most software programs in the market

write a technical term for following statements
1.The method applied to increase the life of computer and its assets.
2.The power regulating device this supplies constant power to the computer from its backup system.
3.The software used to scan, locate and detect the disk for viruses.

Answers

Answer:

1. Hardware Maintenance

2. Uninterrupted Power Supply (UPS)

3. Antivirus software

Explanation:

Antivirus software, or Anti-virus software (also known as AV software), otherwise called anti malware, is a PC program used to forestall, distinguish, and eliminate malware.

Antivirus software was initially evolved to identify and eliminate PC infections, thus the name. Be that as it may, with the expansion of different sorts of malware, antivirus software began to give security from other PC dangers. Specifically, current antivirus software can shield clients from: noxious program criminals.

A few items additionally incorporate security from other PC dangers, for example, tainted and noxious URLs, spam, trick and phishing assaults, online identity (privacy), web based financial assaults, social engineering techniques, advanced persistent threat (APT).

Other Questions
How is 2 bit a flat character in the outsiders January 19 national popcorn day. A bag of popcorn has the average of 450 kennels if 4%% of the kernels dont pop how manu pieces of popcorn will the bag make what is the momentum of an object that is not moving? Baseball was referred to as what in the 1920s?32. What were two reasons more students began attending high school in the 1920s? A total of 600 advertisements were sold for a certain magazine. If 20 percent of the first 200 sold were in color, 40 percent of the next 300 sold were in color, and 80 percent of the last 100 sold were in color, what percent of the 600 advertisements were in color? Which statement contains visual imagery?dingy city-roofsThey have been here now for too long a timethe world heeds them notof their peaceTo which the future is as was the past If 56 grams of nitrogen is mixed with 56 grams of oxygen, what is the pressure of each gas if the totalpressure is 1320 Torrs? DMagnesium carbonate decomposes on heating to form magnesium oxide and carbon dioxide asshown.MgCO3 MgO + CO2How much magnesium carbonate is needed to make 5.0g of magnesium oxide?3.5gB 4.09C 6.5gD 10.59 Hello! Can someone please help me with this 1 questions! thank you so much! (ill give brainlist) What would the U.S. Senate be opposed to the Annexation Treaty of 1844? which of the following quadratic equation is written in standard form?a.3x-2x =7b.-2x -7=-3xc.-2x-7+3x=0d.-2x +3x-7=0 5. At what depth does the photic zone extend to?100 m200 m300 mThere is not a specific depthOption 3 Square LAMP has vertices L(-2, -3), A(4, -1), M(2,5), and P(-4, 3). What is theperimeter of the square? I just want the answer. Plis help me Which of the following obligations best describes the duties of the secretary of state?A. providing legal representation for victims of crimesB. overseeing and regulating government activitiesC. overseeing and regulating laws that provide equality and safety in the workplaceD. authorizing the production of all government files and documents How does trade compare today from back then? :.. Find the incorrect option.a. Napoleonic code removed all privileges based on birthb. Napoleonic code was introduced in 1931C. Napoleonic code established equality before the law.d. Napoleonic code secured the right to property. USE THE CORRECT FORMS OF VERBS (all tenses) Can u answer some of them? Please answer the ones you know only:) u only have 9 minutes left!!! PLSS HELP!! NEED ASAP!!! MARKING BRAINLIEST!!! PLS EXPLAIN!!! At the produce store you can buy 4 bags of bananas for $22.52. How much would it cost if you were to buy 2 bags? How many Senators are there in Congress?B435A100D5352