Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 23rd, 2010, 07:34 AM
Registered User
 
Join Date: Apr 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Post Some Facts about C++.

Hi Friends,

Not sure if this is a serious question of ur teacher , but here are some about C++:

1.C++ was derived from C in the 80s
2.C++ is object oriented programming language
3.C++ supports structured programming as well
4.C++ is highly used because it's fast and middle level language and many other reasons
5.C++ supports multiple inheritance , Java does NOT.
6.C++ affected Java and C#
7.It's statically typed
8.It's strongly typed ?( u have to declare the variables )
9.It supports pointers ( access to memory addresses)
10.It supports preprocessing before compilation.

If you have more amazing things please share with us..

Thank You.....
Reply With Quote
  #2 (permalink)  
Old June 12th, 2010, 02:28 PM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default The name

It was called C++ because of one of the features added to it from the 'C' programming language

If the variable has ++ behind it a value of one is added
example, Add++

The developer used this in the name as he thought he only added one thing to the language
Reply With Quote
  #3 (permalink)  
Old June 26th, 2010, 10:29 PM
Registered User
 
Join Date: Jun 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sweet

I love C++, I am taking JAVA now!

I have a question on:
5.C++ supports multiple inheritance , Java does NOT.

Doesn't JAVA support multiple inheritance, or only inside of classes?

Thanks for the post!
Reply With Quote
  #4 (permalink)  
Old July 15th, 2010, 09:06 AM
Authorized User
 
Join Date: Jan 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to meteormatt Send a message via Yahoo to meteormatt
Default

Quote:
Originally Posted by Coder1 View Post
I love C++, I am taking JAVA now!

I have a question on:
5.C++ supports multiple inheritance , Java does NOT.

Doesn't JAVA support multiple inheritance, or only inside of classes?

Thanks for the post!
Yes.

There must be some reason that Java do not support Multiple inheritance.
Reply With Quote
  #5 (permalink)  
Old July 15th, 2010, 03:06 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Quote:
Originally Posted by meteormatt View Post
Yes.

There must be some reason that Java do not support Multiple inheritance.
Because C++ proved what an ugly mess you can get into using multiple inheritance.

That Java designers (correctly, in my never overly humble opinion) decided that the minor gains from multiple inheritance weren't worth the utter ugliness than can result.
Reply With Quote









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.