Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

Method Headers

Started by LilAznMVP89 Dec 8, 2004 at 7:07 PM 1 replies 400+ views
Original Post
LilAznMVP89
LilAznMVP89
Given the method header void doSomething(Object param) which of the following is not a valid call to the method? a. doSomething("Java") b. doSomething(new String("Java")) c. doSomething(14) d. doSomething(new Integer(14)) e. All are valid calls
OrenGL
OrenGL
Is this your homework?
Don't shoot! I'm with the science team.....
darookie
darookie
Quote:
Original post by OrenGL
Is this your homework?

I guess so...
[edit]
Anyway, here's the solution:
* Write a program and just try out. [wink]
[/edit]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.