定义一个名为'day'的java,其成员如下: [英] Define a java named 'day' having the following members:

查看:79
本文介绍了定义一个名为'day'的java,其成员如下:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

定义一个名为'day'的Java类,其成员如下:

数据成员:小时,天

主要方法:初始化每天的天数和小时数,分别以天和小时为单位。

计算以天为单位的总秒数



我的尝试:



到目前为止,我没有尝试过任何可能的尝试,请帮助我实现目标。

解决方案

我们不要做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。

作业问题明确告诉您要做什么:使用您最近的课程笔记(和/或课程书的相应章节)找出要做的事情 - 这并不复杂。

亲自尝试一下,你可能会发现它并不像你想象的那么难! />


如果您遇到特定问题,请询问相关问题,我们会尽力提供帮助。但是我们不会为你做这一切!


Java ™教程 [ ^ ]

Define a Java class named 'day' having the following members:
Data Members: hours, days
Main method : initialize the number of days and number of hours per day in days and hours respectively.
Compute the total number of seconds in days

What I have tried:

nothing so far, i failed in my every possible attempt please help me to get till my goal is attained.

解决方案

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
The homework question explicitly tells you exactly what to do: use your most recent course notes (and / or the appropriate chapter of the course book) to work out what to do - this isn't complicated.
Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!


The Java™ Tutorials[^]


这篇关于定义一个名为'day'的java,其成员如下:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆