Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
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: };
Referring to the sample code above, on which one of
the following lines does an initializer list occur?
1) Line 2
2) Line 5
3) Line 8
4) Line 10
5) Line 11
✍: Guest
2012-04-26, 2583👍, 0💬
Popular Posts:
How To Increment Dates by 1? - Oracle DBA FAQ - Understanding SQL Basics If you have a date, and you...
What is thread? A thread is an independent path of execution in a system.
What are the two fundamental objects in ADO.NET ? Datareader and Dataset are the two fundamental obj...
What does static variable mean? There are 3 main uses for static variables: If you declare within a ...
What will the following piece of code do? int f(unsigned int x) { int i; for (i=0; x!=0; x>&a...