View Single Post
  #1 (permalink)  
Old 07-28-2007, 10:30 AM
money123 money123 is offline
Member
 
Join Date: Jul 2007
Posts: 11
money123 is on a distinguished road
confused with protected qualifier.....plz solve this query...
Class "Foo" resides in package "com.foo" and contains
methods with the following declarations:

a. final String getName()
b. protected final String getDescription()
c. private String getCode()
d. synchronized String getFilename()
e. String getID()

Class "Bar" extends "Foo" and resides in package
"com.foo.bar"

Referring to the scenario above, which one of the methods of "Foo" is accessible to class "Bar"?

Choice 1

Method a
Choice 2

Method b
Choice 3

Method c
Choice 4

Method d
Choice 5

Method e

I think its either answer a or b
Reply With Quote
Sponsored Links