Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 2536👍, 0💬
Popular Posts:
Can we have static indexer in C# ? No.
How To Enter Binary Numbers in SQL Statements? - MySQL FAQs - Introduction to SQL Basics If you want...
How can I use tables to structure forms Small forms are sometimes placed within a TD element within ...
Why is it preferred to not use finalize for clean up? Problem with finalize is that garbage collecti...
How To Write a Query with a Right Outer Join? - Oracle DBA FAQ - Understanding SQL SELECT Query Stat...