d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Gui Question
Add Reply New Topic New Poll
Member
Posts: 2,388
Joined: Nov 26 2006
Gold: 23.40
Jun 11 2012 02:43pm
You only need to extend something, like JFrame, if you are going to override a method correct?
If I just want to use the methods I would be able to just import them right?

java btw

This post was edited by MachoMonkey89 on Jun 11 2012 02:44pm
Member
Posts: 4,605
Joined: Sep 15 2011
Gold: 9,464.00
Jun 11 2012 03:09pm
oh boy.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 11 2012 06:15pm
tldr: no and no

1. "extends" is a keyword that indicates you are "inheriting" the entire template of another class. if you want to use it, you must inherit. you can optionally override behavior.
2. this is an OOP concept, not GUI related.
3. you can't import methods.
4. you can import the class, create an instance of that class, and use the methods of that class if that's all you wanna do. If it's a static method, you don't need to create an instance.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll