Question :Describe the visitor design pattern (General)
Answer :Represents an operation to be performed on the elements of an object
structure. Visitor lets you define a new operation without changing the
classes of the elements on which it operates.
The root of a class hierarchy defines an abstract method to accept a
visitor. Subclasses implement this method with visitor.visit(this). The
Visitor interface has visit methods for all subclasses of the baseclass in the
hierarchy.
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Friday, March 13, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment