Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-26-2006, 07:21 PM   #1 (permalink)
ice
Registered User
 
Join Date: Mar 2006
Location: Malaysia
Posts: 7
ice is on a distinguished road
Unhappy help me..once again..

hello,

all i know, GUI is only an interface..
what code should i use/add/change to implement inheritance& polymorphsm in GUI?
can i use same way to implement linkedlist in GUI?

i did learn polymorphsm but i do not know how to apply it in interface(GUI) that i created.
for example, i create an interface (GUI) for user to enter his personal data, his D.O.B and address. my program allow many users to enter their data, how can i ensure that i can store the previous data and retrieve anyone's data?

Thank you..
ice is offline   Reply With Quote
Old 03-26-2006, 08:51 PM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I really don't see what that has to do with inheritance at all.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 03-26-2006, 09:02 PM   #3 (permalink)
ice
Registered User
 
Join Date: Mar 2006
Location: Malaysia
Posts: 7
ice is on a distinguished road
Quote:
Originally Posted by teknomage1
I really don't see what that has to do with inheritance at all.
erm..how about, an array?
ice is offline   Reply With Quote
Old 03-27-2006, 12:38 PM   #4 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,166
Belisarius is on a distinguished road
The simplest way to showcase polymorphism is to write a method that takes in an Object and then call the toString() method on it. Almost every object in Java over-rides toString().
__________________
GitS
Belisarius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 08:43 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting