🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17516

Re: Dynamic method binding

#17516
From: Vishal P Mahabeer
Date: Fri, 06 Nov 1998 00:00
19 lines
1017 bytes
Hi Steve.

The stuff you gave me really helped alot.  However, there is one more
problem.

Supposing I have a Hashtable with key values of type String and value
values of type CustomFrame (I defined this class).  Consider the following
method:

public CustomFrame getValue(String key) {
	return this.hashTable.get(key);  
}

This will not work because the method 'get(key)' returns an object of type
Object and not CustomFrame.  I need the CustomFrame object so that I can
invoke methods on it.

Thanks
Vishal
Technical Details
Message-ID: <01be097a$c4239940$c60924c4@vishalm>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01be08c8$d3d2edd0$c60924c4@vishalm> <364fd49f.36318590@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,db2d30fe5814e4cb
X-Google-Attributes: gidf74b3,public
From: "Vishal P Mahabeer" <vishalm@spl.co.za>
Subject: Re: Dynamic method binding
Date: 1998/11/06
Message-ID: <01be097a$c4239940$c60924c4@vishalm>
X-Deja-AN: 408996314
References: <01be08c8$d3d2edd0$c60924c4@vishalm> <364fd49f.36318590@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language