Chat LIVE With Programming Experts! There Are 23 Online Right Now...

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

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




Java Concepts

 
Reply to this topicStart new topic

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: 2,508



Thanked: 128 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,384



Thanked: 95 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

D.I.C Lover
Group Icon

Joined: 6 Mar, 2008
Posts: 6,953



Thanked: 673 times
Dream Kudos: 200
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 online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 05:39PM

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