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

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, 2700👍, 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, 2698👍, 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, 2695👍, 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, 2694👍, 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, 2688👍, 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, 2686👍, 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, 2686👍, 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, 2682👍, 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, 2681👍, 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, 2678👍, 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, 2672👍, 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, 2672👍, 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, 2672👍, 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, 2668👍, 0💬

Could you tell something about the Unix System Kernel?
Could you tell something about the Unix System Kernel? The kernel is the heart of the UNIX openrating system, it’s reponsible for controlling the computer’s resouces and scheduling user jobs so that each one gets its fair share of resources.
2012-04-04, 2667👍, 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, 2667👍, 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, 2664👍, 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, 2663👍, 0💬

What is abstraction? C++
What is abstraction? C++ Abstraction is of the process of hiding unwanted details from the user.
2012-02-22, 2661👍, 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, 2658👍, 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, 2656👍, 0💬

In C++, what is the difference between method overloading and method overriding?
In C++, what is the difference between method overloading and method overriding? Overloading a method (or function) in C++ is the ability for functions of the same name to be defined as long as these methods have different signatures (different set of parameters). Method overriding is the ability of...
2012-03-27, 2655👍, 0💬

What is the difference between char a[] = “string”; and char *p = “string”;?
What is the difference between char a[] = “string”; and char *p = “string”;? In the first case 6 bytes are allocated to the variable a which is fixed, where as in the second case if *p is assigned to some other value the allocate memory can change.
2012-03-07, 2655👍, 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-02-01, 2654👍, 0💬

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