<< < 1 2 3 4 5 6 7 8 > >>   Sort: Date

What are proxy objects? C++
What are proxy objects? C++ Objects that stand for other objects are called proxy objects or surrogates. template &lt;class t=""> class Array2D { public: class Array1D { public: T& operator[] (int index); const T& operator[] (int index)const; }; Array1D operator[] (int index); const Arra...
2012-01-12, 2643👍, 0💬

What is an object? C++
What is an object? C++ Object is a software bundle of variables and related methods. Objects have state and behavior.
2012-02-08, 2638👍, 0💬

What is RTTI? C++
What is RTTI? C++ Runtime type identification (RTTI) lets you find the dynamic type of an object when you have only a pointer or a reference to the base type. RTTI is the official way in standard C++ to discover the type of an object and to convert the type of a pointer or reference (that is, dynami...
2012-02-07, 2636👍, 0💬

What is a conversion constructor C++?
What is a conversion constructor C++? A constructor that accepts one argument of a different type.
2012-03-16, 2634👍, 0💬

What is the difference between an object and a class?
What is the difference between an object and a class? Classes and objects are separate but related concepts. Every object belongs to a class and every class contains one or more related objects. - A Class is static. All of the attributes of a class are fixed before, during, and after the execution o...
2012-02-17, 2632👍, 0💬

What does extern mean in a function declaration?
What does extern mean in a function declaration? Using extern in a function declaration we can make a function such that it can used outside the file in which it is defined. An extern variable, function definition, or declaration also makes the described variable or function usable by the succeeding...
2012-03-06, 2631👍, 0💬

What is an Iterator class? C++
What is an Iterator class? C++ A class that is used to traverse through the objects maintained by a container class. There are five categories of iterators: input iterators, output iterators, forward iterators, bidirectional iterators, random access. An iterator is an entity that gives access to the...
2012-01-05, 2630👍, 0💬

If this is a complete translation unit, what can be said about the variable "MaxEntries"?
const int MaxEntries = 10; extern int entries[MaxEntries]; If this is a complete translation unit, what can be said about the variable "MaxEntries"? 1) It can only be used within the translation unit shown in the sample. 2) It cannot be used as a case value in a switch statement. 3) It becomes acces...
2012-04-24, 2624👍, 0💬

What is a dangling pointer? C++
What is a dangling pointer? C++ A dangling pointer arises when you use the address of an object after its lifetime is over. This may occur in situations like returning addresses of the automatic variables from a function or using the address of the memory block after it is freed. The following code ...
2012-01-06, 2622👍, 0💬

What is the value of "count" immediately before the return statement above is executed?
int count=0; class obj { public: obj(){ count++; } ~obj() { count--; } }; main() { obj A,B,C,D ; return 0 ; } What is the value of "count" immediately before the return statement above is executed? 1) 0 2) 1 3) 2 4) 3 5) 4
2012-04-25, 2615👍, 0💬

What are each of the standard files and what are they normally associated with?
They are the standard input file, the standard output file and the standard error file. The first is usually associated with the keyboard, the second and third are usually associated with the terminal screen. Detemine the code below, tell me exectly how many times is the operation sum++ performed ? ...
2012-04-05, 2614👍, 0💬

What are the conditions that have to be met for a condition to be an invariant of the class?
What are the conditions that have to be met for a condition to be an invariant of the class? * The condition should hold at the end of every constructor. * The condition should hold at the end of every mutator (non-const) operation.
2012-01-12, 2613👍, 0💬

What do you mean by binding of data and functions?
What do you mean by binding of data and functions? Encapsulation.
2012-02-16, 2610👍, 0💬

What is a node class? C++
What is a node class? C++ A node class is a class that, * relies on the base class for services and implementation, * provides a wider interface to the users than its base class, * relies primarily on virtual functions in its public interface * depends on all its direct and indirect base class * can...
2012-01-13, 2609👍, 0💬

What do you mean by inline function?
What do you mean by inline function? The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application's performance in exchange for increased compile time and possibly (but not always) an increa...
2012-01-27, 2608👍, 0💬

What methods can be overridden in Java?
What methods can be overridden in Java? In C++ terminology, all public methods in Java are virtual. Therefore, all Java methods can be overwritten in subclasses except those that are declared final, static, and private.
2012-03-27, 2607👍, 0💬

Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321]. quicksort ((data + 222), 100);
2012-02-20, 2603👍, 0💬

What values are be stored in 'a' after the above sample code is run if it is run on a system where pointers are two bytes lo
char a; char ca[] = {'a','e','i','o','u','y'}; char* pca = ca; pca += 2; a = *pca; What values are be stored in 'a' after the above sample code is run if it is run on a system where pointers are two bytes long? 1) a = 'u' 2) a = 'e' 3) a = 'i' 4) The code is illegal. Only a pointer can be added to a...
2012-04-20, 2602👍, 0💬

How do you link a C++ program to C functions?
How do you link a C++ program to C functions? By using the extern "C" linkage specification around the C function declarations.
2012-03-12, 2599👍, 0💬

What is the software Life-Cycle?
What is the software Life-Cycle? The software Life-Cycle are 1) Analysis and specification of the task 2) Design of the algorithms and data structures 3) Implementation (coding) 4) Testing 5) Maintenance and evolution of the system 6) Obsolescence
2012-04-12, 2594👍, 0💬

What is an adaptor class or Wrapper class? C++
What is an adaptor class or Wrapper class? C++ A class that has no functionality of its own. Its member functions hide the use of a third party software component or an object with the non-compatible interface or a non-object-oriented implementation.
2012-01-09, 2593👍, 0💬

What are the differences between a C++ struct and C++ class?
What are the differences between a C++ struct and C++ class? The default member and base-class access specifiers are different.
2012-03-13, 2592👍, 0💬

What is polymorphism? C++
What is polymorphism? C++ Polymorphism is the idea that a base class can be inherited by several classes. A base class pointer can point to its child class and a base class array can store different child class objects.
2012-01-17, 2591👍, 0💬

When should you use multiple inheritance?
When should you use multiple inheritance? There are three acceptable answers: "Never," "Rarely," and "When the problem domain cannot be accurately modeled any other way."
2012-03-19, 2590👍, 0💬

<< < 1 2 3 4 5 6 7 8 > >>   Sort: Date