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

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, 2785👍, 0💬

What is pure virtual function? C++
What is pure virtual function? C++ A class is made abstract by declaring one or more of its virtual functions to be pure. A pure virtual function is one with an initializer of = 0 in its declaration
2012-01-19, 2782👍, 0💬

What are the defining traits of an object-oriented language?
What are the defining traits of an object-oriented language? The defining traits of an object-oriented langauge are: * encapsulation * inheritance * polymorphism
2012-03-28, 2781👍, 0💬

What is a default constructor? C++
What is a default constructor? C++ Default constructor WITH arguments class B { public: B (int m = 0) : n (m) {} int n; }; int main(int argc, char *argv[]) { B b; return 0; }
2012-03-15, 2780👍, 0💬

What is an explicit constructor? C++
What is an explicit constructor? C++ A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. It’s purpose is reserved explicitly for construction.
2012-03-21, 2779👍, 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, 2778👍, 0💬

How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to stor
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array? How can you find the nodes with repetetive data in a linked list? Write a prog to accept a given string in any order and flash error if any of the char...
2012-02-27, 2778👍, 0💬

What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator. An internal iterator is implemented with member functions of the class that has items to step through. .An external iterator is implemented as a separate class that can be "at...
2012-02-23, 2778👍, 0💬

What are virtual functions? C++
What are virtual functions? C++ A virtual function allows derived classes to replace the implementation provided by the base class. The compiler makes sure the replacement is always called whenever the object in question is actually of the derived class, even if the object is accessed by a base poin...
2012-02-22, 2772👍, 0💬

Define namespace. C++
Define namespace. C++ It is a feature in C++ to minimize name collisions in the global name space. This namespace keyword assigns a distinct name to a library that allows other libraries to use the same identifier names without creating any name collisions. Furthermore, the compiler uses the namespa...
2012-01-04, 2770👍, 0💬

What is the Standard Template Library (STL)?
What is the Standard Template Library (STL)? A library of container templates approved by the ANSI committee for inclusion in the standard C++ specification. A programmer who then launches into a discussion of the generic programming model, iterators, allocators, algorithms, and such, has a higher t...
2012-03-21, 2769👍, 0💬

What is a mutable member? C++
What is a mutable member? C++ One that can be modified by the class even when the object of the class or the member function doing the modification is const.
2012-03-20, 2764👍, 0💬

I write a program in C++ that asks the user for names of students and their cooresponding midterm scores ...
I write a program in C++ that asks the user for names of students and their cooresponding midterm scores ... I write a program in C++ that asks the user for names of students and their cooresponding midterm scores, at the end, it displays each person, their average, gpa, class ave, total a's, b's, e...
2012-03-14, 2764👍, 0💬

What are 2 ways of exporting a function from a DLL?
What are 2 ways of exporting a function from a DLL? 1.Taking a reference to the function from the DLL instance. 2. Using the DLL ’s Type Library
2012-02-17, 2764👍, 0💬

What is the difference between an ARRAY and a LIST?
What is the difference between an ARRAY and a LIST? Answer1 Array is collection of homogeneous elements. List is collection of heterogeneous elements. For Array memory allocated is static and continuous. For List memory allocated is dynamic and Random. Array: User need not have to keep in track of n...
2012-02-02, 2759👍, 0💬

Tell how to check whether a linked list is circular C++
Tell how to check whether a linked list is circular C++ Create two pointers, each set to the start of the list. Update each as follows: while (pointer1) { pointer1 = pointer1-&gt;next; pointer2 = pointer2-&gt;next; if (pointer2) pointer2=pointer2-&gt;next ;if (pointer1 == pointer2) { pri...
2012-01-31, 2757👍, 0💬

What is Boyce Codd Normal form? C++
What is Boyce Codd Normal form? C++ A relation schema R is in BCNF with respect to a set F of functional dependencies if for all functional dependencies in F+ of the form a-&gt;b, where a and b is a subset of R, at least one of the following holds: * a-&gt;b is a trivial functional dependenc...
2012-01-19, 2756👍, 0💬

What is Boyce Codd Normal form?
What is Boyce Codd Normal form? A relation schema R is in BCNF with respect to a set F of functional dependencies if for all functional dependencies in F+ of the form a-&gt; , where a and b is a subset of R, at least one of the following holds: * a- &gt; b is a trivial functional dependency ...
2012-02-15, 2755👍, 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, 2753👍, 0💬

Anything wrong with this code? ......
Anything wrong with this code? T *p = new T[10]; delete p; Everything is correct, Only the first element of the array will be deleted”, The entire array will be deleted, but only the first element destructor will be called.
2012-03-02, 2752👍, 0💬

Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array? Mergesort always makes recursive calls to sort subarrays that are about half size of the original array, resulting in O(n log n) time.
2012-02-21, 2747👍, 0💬

What do you mean by inheritance? C++
What do you mean by inheritance? C++ Inheritance is the process of creating new classes, called derived classes, from existing classes or base classes. The derived class inherits all the capabilities of the base class, but can add embellishments and refinements of its own.
2012-02-14, 2747👍, 0💬

Differentiate between the message and method. C++
Differentiate between the message and method. C++ Message: * Objects communicate by sending messages to each other. * A message is sent to invoke a method. Method * Provides response to a message. * It is an implementation of an operation.
2012-01-09, 2746👍, 0💬

What is abstraction? C++
What is abstraction? C++ Abstraction is of the process of hiding unwanted details from the user.
2012-02-22, 2743👍, 0💬

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