如何在Eclipse中创建一个子类Java EE? [英] how to create a subclass in Eclipse Java EE?

查看:594
本文介绍了如何在Eclipse中创建一个子类Java EE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在演讲期间,我的教授很快在Eclipse中创建了一个子类。结果将扩展关键字添加到子类中。我没看到他点击了什么按钮。有谁知道我应该在哪里点击? (我想他右键点击了当前课程包的资源管理器,然后是新的==>类,然后我输入什么选择)请帮助

During lecture, my professor very quickly created a subclass in Eclipse. The result has the "extend" keyword added to the subclass. I didn't see what buttons he clicked. Does anyone know where should i click? (i think he right clicked on the current class in the package explorer, then New ==> class, then im lost on what to select) please help

推荐答案

当您查看要子类的类时,打开类型层次结构(按F4)。右键单击parent-to-be类,然后在菜单中转到new - > class(或Ctrl-n,class)。

When you are viewing the class you want to subclass, open Type Hierarchy (press F4). Right click on the parent-to-be class, and in the menu go to new -> class ( or Ctrl-n , class ).

这篇关于如何在Eclipse中创建一个子类Java EE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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