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

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

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

What is the difference between class and structure?
What is the difference between class and structure? Structure: Initially (in C) a structure was used to bundle different type of data types together to perform a particular functionality. But C++ extended the structure to contain functions also. The major difference is that all declarations inside a...
2012-02-06, 2833👍, 0💬

What is a class? C++
What is a class? C++ Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class.
2012-02-20, 2828👍, 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, 2823👍, 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, 2822👍, 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, 2816👍, 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, 2815👍, 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, 2813👍, 0💬

How do I initialize a pointer to a function?
How do I initialize a pointer to a function? This is the way to initialize a pointer to a function void fun(int a) { } void main() { void (*fp)(int); fp=fun; fp(1); }
2012-03-12, 2809👍, 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, 2807👍, 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, 2802👍, 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, 2802👍, 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, 2802👍, 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, 2797👍, 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, 2795👍, 0💬

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, 2794👍, 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, 2789👍, 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, 2788👍, 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, 2788👍, 0💬

Referring to the sample code above, on which one of the following lines does an initializer list occur?
1: class Foo { 2: int size; string name; double value; 3: 4: public: 5: Foo() : size(0), name("unknown"), value(0.0) { 6: } 7: Foo(int s) { 8: size = s; name = "unknown"; value = 0.0; 9: } 10: Foo(int s = 0, string n = "unknown", double v=0) { 11: size = s; name = n; value = v; 12: } 13: }; Referrin...
2012-04-26, 2782👍, 0💬

Is C an object-oriented language?
Is C an object-oriented language? C is not an object-oriented language, but limited object-oriented programming can be done in C.
2012-04-10, 2781👍, 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, 2781👍, 0💬

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