Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Struts (1)
Windows (1)
XHTML (173)
Other Resources:
Assuming that all the necessary standard headers have been ....
class Parent {
public:
Parent () { Status () ; }
virtual ~Parent () { Status () ; }
virtual void Status () { cout << "Parent "; }
} ;
class Child : public Parent {
public:
Child () { Status () ; }
virtual ~Child () { Status () ; }
virtual void Status () { cout << "Child " ; }
} ;
int main () {
Child c ;
return 0 ;
}
Assuming that all the necessary standard headers have been
included and the necessary using-directives have been made,
what will be the output of the sample code above?
1 Child Child Child Child
2 Parent Parent
3 Child Child
4 Parent Child Child Parent
5 Child Parent Parent Child
✍: Guest
2012-05-03, 3878👍, 0💬
Popular Posts:
What is the purpose of the wait(), notify(), and notifyAll() methods? The wait(),notify(), and notif...
How can we format data inside DataGrid? Use the DataFormatString property.
What's the difference between J2SDK 1.5 and J2SDK 5.0? There is no difference, Sun Microsystems just...
Can one change the mouse pointer in Forms? The SET_APPLICATION_PROPERTY build-in in Oracle Forms all...
How To List All Values of Submitted Fields? - PHP Script Tips - Processing Web Forms If you want lis...