Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

try it

 
ashok khetan
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True/False
a. () is a unary operator
b. () is a function operator
c. An Interface can never be private or protected.
 
S Khan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
() is a unary operater (cast) and it's associativity is from right to left.
 
Gagan Indus
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess da ans is
a) true -- cast op or func op
b) true -- func(parameter)
c) true -- yes interfaces r public , always
not too sure about the termiology "function operator" tho !
------------------
Gagan (/^_^\)

[This message has been edited by Gagan Indus (edited September 11, 2001).]
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I think only A is true, since a "function operator" does not make any sense. () after a function name is just the syntax of writing a method and has nothing to do with an operator...
C , in my understanding, is false, since we may have inner interfaces that may be private...
Val
 
anurag dwivedi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think interfaces can be private or protected.
Anurag
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic