Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re x3: Perl - Is it an OO Language

by stefp (Vicar)
on Aug 27, 2002 at 19:11 UTC ( [id://193246]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    class A {
      int ma;
    ...
    
      A::A() : ma(666) {}
    };
    
  2. or download this
    #include "iostream"
    #define class struct
    ...
      std::cerr << a.ma << "\n";
      a.printit();
    }
    
  3. or download this
    #include "iostream"
    #include "toto.h"
    ...
    A::printit() {
      std::cerr << ma << "\n";
    }
    
  4. or download this
    $ g++ -c toto1.cc -o toto1.o
    $ g++ -c toto2.cc -o toto2.o
    ...
    666
    666
    $
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://193246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-29 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found