5 Replies - 221 Views - Last Post: 03 October 2012 - 10:48 PM Rate Topic: -----

#1 healix  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 67
  • Joined: 29-May 11

does everything inherit from the Standard Library?

Posted 03 October 2012 - 04:32 PM

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.
Is This A Good Question/Topic? 0
  • +

Replies To: does everything inherit from the Standard Library?

#2 jimblumberg  Icon User is offline

  • member icon


Reputation: 4070
  • View blog
  • Posts: 12,557
  • Joined: 25-December 09

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
Was This Post Helpful? 0
  • +
  • -

#3 jjl  Icon User is offline

  • Engineer
  • member icon

Reputation: 1074
  • View blog
  • Posts: 4,533
  • Joined: 09-June 09

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 :shuriken:

This post has been edited by jjl: 03 October 2012 - 04:38 PM

Was This Post Helpful? 1
  • +
  • -

#4 healix  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 67
  • Joined: 29-May 11

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.
Was This Post Helpful? 0
  • +
  • -

#5 jjl  Icon User is offline

  • Engineer
  • member icon

Reputation: 1074
  • View blog
  • Posts: 4,533
  • Joined: 09-June 09

Re: does everything inherit from the Standard Library?

Posted 03 October 2012 - 04:56 PM

this might help
http://www.cise.ufl....oustrup/mpp.pdf
Was This Post Helpful? 1
  • +
  • -

#6 healix  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 67
  • Joined: 29-May 11

Re: does everything inherit from the Standard Library?

Posted 03 October 2012 - 10:48 PM

Thank jjl. Just what I was looking for. :^:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1