![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 05.05.2020 18:45 amadileaks
Date Class Constructor β assigns fields to appropriate formal parameter β using the setters so error checking will occur. The constructor with no formal parameters should have no statements in the body of the function. Accessors β return the appropriate fields Setters setMonth β assigns the field to the formal parameter. Error checks the formal parameter to make sure it is a valid month number. If it isnβt a valid month, it sets the month to 1. setDay β assigns the field to the formal parameter. Error checks to make sure the day being passed in is a valid day for the month the object has (ex: January can only be 1-31). You do NOT have to check for leap year β just make sure February is 1-29. If the day is invalid, it sets the day to be 1 setYear β assigns the field to the formal parameter. Error checks the formal parameter to make sure it is not negative. If it is it sets the year to be 1900. toString β creates a string in the format M/D/Y and returns it. The following allows you to concatenate a string with an integer. Use this information to create and return the string in the format M/D/Y. string ans = to_string(month) + "/"; Date -day: int -month: int -year: int +Date() +Date(month:int, day:int, year:int) +getMonth(): int +getDay(): int +getYear():int +setMonth(month:int):void +setDay(day:int) :void +setYear(year:int) :void +toString():string
![ansver](/tpl/images/cats/User.png)
Answers: 1
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 07:30
An endless cycle of creation and response on the internet is called
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 12:00
Match the function to its purpose. fast worth 50pts.
Answers: 1
You know the right answer?
Date Class Constructor β assigns fields to appropriate formal parameter β using the setters so error...
Questions
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/ekonomika.png)
Business, 17.09.2019 02:30
![question](/tpl/images/cats/himiya.png)
Chemistry, 17.09.2019 02:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
English, 17.09.2019 02:30
![question](/tpl/images/cats/mat.png)
Mathematics, 17.09.2019 02:30
![question](/tpl/images/cats/mat.png)
Mathematics, 17.09.2019 02:30
![question](/tpl/images/cats/mat.png)
Mathematics, 17.09.2019 02:30
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 17.09.2019 02:30
![question](/tpl/images/cats/mat.png)
Mathematics, 17.09.2019 02:30
![question](/tpl/images/cats/mat.png)
Mathematics, 17.09.2019 02:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/health.png)
Health, 17.09.2019 02:30