Like java has its API and everything extends from object. What about C++? Does everything derive from The Standard Library? I know the STL was integrated into the standard so is the standard equivalent to Object in Java? I can't find anything that really addresses this so I'd figure I'd ask.
Just curious.
Thanks in advance.
5 Replies - 108 Views - Last Post: 03 October 2012 - 10:48 PM
#1
does everything inherit from the Standard Library?
Posted 03 October 2012 - 04:32 PM
Replies To: does everything inherit from the Standard Library?
#2
Re: does everything inherit from the Standard Library?
Posted 03 October 2012 - 04:37 PM
No, this is not Java. No, everything does not derive from the Standard Library.
Jim
Jim
#3
Re: does everything inherit from the Standard Library?
Posted 03 October 2012 - 04:38 PM
No, C++ is a multi paradigm language. Java is strictly a OOP language. Their is not common base type in C++
Edit: ninja'd
Edit: ninja'd
This post has been edited by jjl: 03 October 2012 - 04:38 PM
#4
Re: does everything inherit from the Standard Library?
Posted 03 October 2012 - 04:40 PM
Thanks jim. Very succinct. But could you expand a little on that? I wasn't comparing anything to Java. Just used it to explain better what I was asking.
#5
Re: does everything inherit from the Standard Library?
Posted 03 October 2012 - 04:56 PM
#6
Re: does everything inherit from the Standard Library?
Posted 03 October 2012 - 10:48 PM
Thank jjl. Just what I was looking for.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|