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, 3904👍, 0💬
Popular Posts:
Which bit wise operator is suitable for turning on a particular bit in a number? The bitwise OR oper...
How To Create an Add-to-Netvibes Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS News ...
.NET INTERVIEW QUESTIONS - Can we use events with threading ? Yes, you can use events with thread; t...
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of ...
What is the difference between delegate and events? ã Actually events use delegates in bottom. But ...