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, 3527👍, 0💬
Popular Posts:
Where Do You Download JUnit? Where do I download JUnit? I don't think anyone will ask this question ...
In C#, what is a weak reference? Generally, when you talk about a reference to an object in .NET (an...
Can you explain different software development life cycles -part II? Water Fall Model This is the ol...
.NET INTERVIEW QUESTIONS - What are types of compatibility in VB6? There are three possible project ...
How To Return the Second 5 Rows? - MySQL FAQs - SQL SELECT Statements with JOIN and Subqueries If yo...