![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| Java Class Hierarchy javax.swing Class JFrame java.lang.object - java.awt.Component java.awt.Container java.awt.Window java.awt.Frame javax.swing.JFrame how is the above process...i know that Jframe extends Frame....but what about Window.....does JFrame also extends Window...if yes that means my JFrame object can use functions of JFrame,FrameWindow,Container....etc.... |
| |||
| What you posted refers to the following: javax.swing.JFrame extends java.awt.Frame java.awt.Frame extends java.awt.Window java.awt.Window extends java.awt.Container java.awt.Container extends java.awt.Component java.awt.Component extends java.lang.Object JFrame can use anything that can be used with Frame, Window, Container, Component and Object, in other words. JFrame's parent class (Frame) inherits properties and methods from its parent class (Window), which inherits properties and methods from its parent class (Container), etc. JFrame itself inherits the properties and methods of its parent class (Frame), which means that JFrame can work with anything that Frame provides or inherits. __________________ "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." -- Bjarne Stroustrup, creator of what is now known as C++ For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that. |
| The Following User Says Thank You to rpgfan3233 For This Useful Post: | ||
HelloWorld (07-30-2007) | ||
| |||
| does static and final means same... if they have difference what is it? does this two statements are same... public static done=1; public final done=1; What does this mean? public static final done=1; |
| ||||
| Quote:
![]() |
| |||
| Something that might help you with the definition of static - static : Java Glossary __________________ "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." -- Bjarne Stroustrup, creator of what is now known as C++ For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that. |
| ||||
| nogono, I recommend you to learn the basic first before getting into the Data Structure. If you don't even know the difference between: Quote:
protected - anybody from the same package can accesss private - only this class can access public - anybody can access |
![]() |
| Thread Tools | |
| Display Modes | |
| |