Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » |SOLVED] Vector of object: cast to inherited class
Re: |SOLVED] Vector of object: cast to inherited class [message #52381 is a reply to message #52377] Mon, 16 September 2019 16:29 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Xemuth wrote on Mon, 16 September 2019 03:35
Also Except Struct is well aligned in memory and you didn't set accessor flag to public, what's the difference between class and struct ?

Default visibility for class is private.
Default visibility for struct is public.
That includes inheritance.
There is no other difference.
Memory alignment is a completely separate topic.


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: copying code from web into IDE
Next Topic: Simple way to develope 2D Game
Goto Forum:
  


Current Time: Mon Apr 29 07:38:44 CEST 2024

Total time taken to generate the page: 0.03350 seconds