开发者

extends in java [closed]

开发者 https://www.devze.com 2023-02-15 17:43 出处:网络
It's difficult to tell what is being asked here. This question is a开发者_Go百科mbiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. F
It's difficult to tell what is being asked here. This question is a开发者_Go百科mbiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

i have make simple java program to find volume.first i have use extends then it will run but after without extends it will not run. can we also run same program without extends?


You say you're using "extends" I presume you mean in the context of "extending a class" which is inheritance in Java. "Extending" the parent class allows your code to interact with the code you've been provided with and so is essential

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号