home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Java Assignment Question

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1446
Discussions: 200,931, Posts: 2,379,160, Members: 246,297
Old April 25th, 2009, 04:13 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 1
Java Assignment Question

I've been staring at this UML for the past hour and cant seem to figure it out..
The problem I'm having is interfacing the sensor with the probs. I can't seem to wrap my head around how the sensor class can check the prob class through just an interface. The full problem description is here CS2043 Project Plan - Iteration 1 . If anyone can provide any insight into this it would be fantastic!
Danish05301 is offline   Reply With Quote
Old April 25th, 2009, 08:29 PM     #2 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
Prob is an entire class that does something, not just an interface. In OOP you can define an interface that a class implements. This is just a list of method names & arguments without implementation. When they talk about the Prob class interface though they're not talking about it as a code construct like described above. They're just talking about the list of methods that the class implements. Remember EVERY class has an interface, which is the list of methods it implements. Writing an interface explicitly in java is just a way of forcing the same interface on multiple classes.
sr71000 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
java question vikeor Applications and Operating Systems 3 February 23rd, 2005 09:56 AM
Java question bdj Applications and Operating Systems 5 November 18th, 2004 08:27 AM
Java VM for XP question.... hawkman2 Webmastering and Programming 3 July 27th, 2002 04:42 PM
another java question jgargac Webmastering and Programming 4 March 8th, 2002 06:58 PM
Another java question!!!! Help please Tekk Webmastering and Programming 7 February 8th, 2002 09:30 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2872)
Obama the Muslim (14)
California Passes Anti-Flat-HDTV Le.. (39)
Is the PSU I received dead? (10)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (16)
New Computer wont recognize XP disc (7)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
Wireless Televisions. (0)
Install XP pro and a Vista laptop ?? (11)
Partition Magic caused HDD problem (2)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Regular Build (3)
Ideal cheap graph card for PC-Gaming? (16)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)


All times are GMT -4. The time now is 07:23 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28