Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > What are the differences between c++ and Ruby?

Reply
Thread Tools

What are the differences between c++ and Ruby?

 
 
Vasil Vangelovski
Guest
Posts: n/a
 
      12-05-2007
Why would you want to implement multiple inheritance in Java???
if Java should have had multiple inheritance the designers wouldn't
have bothered to add interfaces to the language. By using interfaces
you gain the benefits of multiple inheritance without added
complications. And the differences between Ruby and C++ don't even
come near the differernces between C++ and Java. C++ and Ruby are from
different planets.

 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      12-06-2007
2007/12/6, Vasil Vangelovski <(E-Mail Removed)>:
> Why would you want to implement multiple inheritance in Java???
> if Java should have had multiple inheritance the designers wouldn't
> have bothered to add interfaces to the language. By using interfaces
> you gain the benefits of multiple inheritance without added
> complications.


Actually you do not get *all* the benefits of MI, especially you are
lacking implementation inheritance. If you want a thorough analysis I
recommend reading Bertrand Meyer's "Object-oriented software
construction". Eiffel has sophisticated mechanisms to allow for MI
without nasty effects and the book provides *a lot* insight into OOx.

> And the differences between Ruby and C++ don't even
> come near the differernces between C++ and Java. C++ and Ruby are from
> different planets.




Cheers

robert

--
use.inject do |as, often| as.you_can - without end

 
Reply With Quote
 
 
 
 
Robert Parker
Guest
Posts: n/a
 
      12-06-2007
Hi Guys,
I'm in here late but not matter,

They are both object oriented languages but with important differences:
1. In C++ there must be just 2 or 3 objects.
2. If 2 they must be named foo and bar. Foo may inherit from bar or vice versa.
3. If there are 3 objects , the third must be named baz and it must
inherit from both foo and bar.

Or so the literature about it would suggest.

Cheers Bob
--
Balanced diet: Red meat, white meat, corned meat, smoked meat and sausages.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DEVELOP THE WINNING EDGE, SMALL DIFFERENCES IN YOUR PERFORMANCE CANLEAD TO LARGE DIFFERENCES IN YOUR RESULTS Home_Job_opportunity C Programming 0 01-14-2009 03:51 PM
DEVELOP THE WINNING EDGE, SMALL DIFFERENCES IN YOUR PERFORMANCE CANLEAD TO LARGE DIFFERENCES IN YOUR RESULTS Home_Job_opportunity C Programming 0 01-08-2009 04:31 PM
Differences between getImage and createImage and using Toolkit Thomas Fritsch Java 2 07-27-2006 06:33 AM
Forms Authentication and Differences Between Windows Explorer and IE Kevin Watkins ASP .Net Security 2 04-08-2004 10:41 AM



Advertisments