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, how do you declare
a numbers object called "A" and assign its "I" member the value "2"?
class numbers {
int I;
public:
void set(int v) {I = v;}
int read() {return I;}
} ;
Referring to the sample code above, how do you declare
a numbers object called "A" and assign its "I" member the value "2"?
1) A : numbers;
A.set(2);
2) numbers set(2);
numbers A;
3) numbers A;
set(2);
4) A.set(2), B.set(3), C.set(5);
numbers A, B, C;
5) numbers A;
A.set(2);
✍: Guest
2012-05-01, 3303👍, 0💬
Popular Posts:
How can I check for HTML errors? HTML validators check HTML documents against a formal definition of...
When should the register modifier be used? Does it really help? The register modifier hints to the c...
What is CodeDom? “CodeDom” is an object model which represents actually a source code. It is designe...
What is the difference between CALL_FORM, NEW_FORM and OPEN_FORM? CALL_FORM: start a new form and pa...
How Are Vertical Margins between Two Block Elements Collapsed? - CSS Tutorials - Understanding Multi...