我怎么做这个问题..... [英] How I Do This Question .....

查看:69
本文介绍了我怎么做这个问题.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编写一个由三个类A,B和C组成的程序,这样B

扩展A和C扩展B.每个类应该定义一个instanee variabie

命名为x(也就是说,每个bas都有自己的变量名为x)。在C语言中描述一种方法,用于访问并将A的x版本设置为给定的值,而不需要更改B或C的版本。在java语言中

Write a program that consists of three classes, A, B, and C, such that B
extends A and C extends B. Each class should define an instanee variabie
named "x" (that is, each bas its own variabie named x). Describe a way for
a method in C to access and set A's version of x to a given vaiue, without
changing B or C's version. in java languge

推荐答案

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



亲自尝试,你可能会发现它不是和你想的一样困难!



我们尝试做的任何事情都是解决方案 - 它真的很容易......阅读你的笔记,然后阅读问题并做它一点一滴。
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.

Try it yourself, you may find it is not as difficult as you think!

And anything we try to do is the solution - it really is that easy...read your notes, then read the question and do it bit by bit.


我们不做自己的功课,因为我们知道你可以做得更好。我们可以找到一个解决方案,而您直接感兴趣的是找到 super 解决方案!
We don't do your own homework because we know you can do better. We could just find a solution, while you, the directly interested, are going to find a super solution!


阅读有关OOP和Java的书籍应该可以帮到你out。

这将帮助您了解语言和OOP。
Reading some books on OOP and Java should help you out.
This will help you learn about the language and OOP.


这篇关于我怎么做这个问题.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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