Technical Interview Questions and Answers :: Virtusa
- Select All
- SQL
- C++
- .NET
- Oracle PLSQL
- Informatica
- WebMethod
- DBMS
- Soft. Engineering
- Data Structure
- Networking
- C
- Operating System
- HR Question in TR
- Java
81 / 221
i. An interface class doesn’t do much if it does then it is not an interface class.
ii. It simply adjusts the appearance of some service to local needs.
iii. Interface classes are essential to allow sharing without forcing all users into a common straitjacket.
82 / 221
i. A major use of interface function is to adjust the interface to match users exceptions better, thus moving code that would have been scattered throughout a user's code into an interface.
ii. An interface class that controls access to another class or adjusts its interface and is sometimes called as a wrapper.
iii. Interface classes are to provide checked or restricted interfaces.
83 / 221
No Discussion on this question yet!
84 / 221
No Discussion on this question yet!
85 / 221
i. A class is said to be abstract class that represents the interface to a set of implementations of a common concept.
ii. The abstract class provides the common interface to the implementation. This means, we can use a set without knowing which kind of implementation is used.
86 / 221
Concrete type:
1. We require a redesign of the implementation classes to express commonality and issued a template to exploit it.
2. If the implementation changes significantly the interface is usually modified to reflect the change.
Abstract type:
1. Design a common interface but no commonality beyond re-ability to implement the interface.
2. Users need not depend on these declarations and need not be recompiled or in any way changed if set changes.
87 / 221
i. Define a single concept in the array that allows several implementations of it to coexist in a program.
ii. Provide reasonable run-time and space efficiency through the use of virtual functions .
iii. Each implementation have only minimal dependency on other classes.
iv. Comprehensible in isolation.
88 / 221
A class that does not confirm to create objects resembles on the abstract type and it is called as abstract node types.
89 / 221
No Discussion on this question yet!
90 / 221
No Discussion on this question yet!