Java School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a Java Expert!

Join 300,475 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,753 people online right now. Registration is fast and FREE... Join Now!




Java Concepts

 

Java Concepts

faisaly

6 Nov, 2008 - 02:18 AM
Post #1

New D.I.C Head
*

Joined: 28 May, 2007
Posts: 22


My Contributions
Dear All,

I've three questions. Kindly answer these.

1. Why we use enableEvents() method?
2. Can a GUI component handle its own events? If yes; then how?
3. Which technique/concept can be use to implement multiple inheritances
in java?

User is offlineProfile CardPM
+Quote Post


Gloin

RE: Java Concepts

6 Nov, 2008 - 02:39 AM
Post #2

Expert Schmexpert...
Group Icon

Joined: 4 Aug, 2008
Posts: 3,528



Thanked: 143 times
Dream Kudos: 75
My Contributions
Is this part of an assignment for school because I have the exact same three questions to answer to my teacher.
User is offlineProfile CardPM
+Quote Post

BigAnt

RE: Java Concepts

6 Nov, 2008 - 09:17 AM
Post #3

May Your Swords Stay Sharp
Group Icon

Joined: 16 Aug, 2008
Posts: 2,391



Thanked: 100 times
Dream Kudos: 75
My Contributions
1. Why we use enableEvents() method?
-->To enableEvents for an object that has a Listener attached to it.

2.Can a GUI component handle its own events? If yes; then how?
-->Yes--[Subclass the GUI component and] implement the appropriate listener.

3. Which technique/concept can be use to implement multiple inheritances
in java?
-->Subclass the subclass.
User is offlineProfile CardPM
+Quote Post

pbl

RE: Java Concepts

6 Nov, 2008 - 06:00 PM
Post #4

Java Lover
Group Icon

Joined: 6 Mar, 2008
Posts: 9,537



Thanked: 1126 times
Dream Kudos: 450
My Contributions
QUOTE(faisaly @ 6 Nov, 2008 - 02:18 AM) *

3. Which technique/concept can be use to implement multiple inheritances
in java?

If you come from a C++ background Java does it by default
In C++ you have to define your methods/destructor as "virtual"

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 03:17AM

Live Java Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month