FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
September 01, 2005

C++/CLI: Cloning

(Page 10 of 11)

September, 2005: C++/CLI: Cloning

Listing 8

int main()
{
     Derived^ d1 = gcnew Derived(10, 20, 30, 40);
     Console::WriteLine("d1 = {0}", d1);

     Derived^ d2 = static_cast<Derived^>(d1->Clone());
     Console::WriteLine("d2 = {0}", d2);

     d1->Base::SetValue(5, 6);

     Console::WriteLine("d1 = {0}", d1);
     Console::WriteLine("d2 = {0}", d2);
}

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK