File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Layout Management

 
Engin Okucu
Ranch Hand
Posts: 174
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the book of Khalid A.Mughal , there is a question as it :
Which of these methods are not available in an instance of the Container class ? :

(a) Component add(Component comp)
(b) Component add(Component comp,int index)
(c) void add(Object constraints,Component comp)
(d) void add(Component comp, Object constraints,int index)
(e) void add(PopupMenu popup)
for me the answer is c and d, but the correct anszer ic only c in the book and there is an explanation where it says so method (e) is inherited from Component. therefore e is so wrong.....
I do a mistake ? can you tell about it.
Thanks.
 
Brian Lugo
Ranch Hand
Posts: 165
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check out the API?
Brian
 
Corey McGlone
Ranch Hand
Posts: 3271
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed, check the API Spec for the Container class.
As for answer E, as that method is inherited from Component, that method is available through an instance of Container, even though it isn't defined within Container.
If you have more questions, please ask.
I hope that helps,
Corey
 
Engin Okucu
Ranch Hand
Posts: 174
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry in first i wanted to say for me the answer is C and E !!! but only C in the answer .....why not E ???
 
Engin Okucu
Ranch Hand
Posts: 174
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Corey thanks... i did look at the API that you 've linked...then it's inherited from Component class since Container class is a subclass of Component, you're right !
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic