Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualKhatharr

Posted 26 December 2012 - 09:16 PM

How does encapsulation prevent sharing?

A Bitmap class can be used to encapsulate a bitmap/texture resource and then you just load/create an instance and then hand it to the object that will be doing the rendering. When you're done with it you destroy the object to free the resource.

Also, most real-world codebases are measured using the scientific unit "wtfs-per-minute".


#3Khatharr

Posted 26 December 2012 - 09:14 PM

How does encapsulation prevent sharing?

A Bitmap class can be used to encapsulate a bitmap/texture resource and then you just load/create an instance and then hand it to the object that will be doing the rendering. When you're done with it you destroy the object to free the resource.

Also, according to XKCD, most real-world codebases are measured using the scientific unit "wtfs-per-minute".

#2Khatharr

Posted 26 December 2012 - 09:14 PM

<p>How does encapsulation prevent sharing?</p>
<p>&nbsp;</p>
<p>A Bitmap class can be used to encapsulate a bitmap/texture resource and then you just load/create an instance and then hand it to the object that will be doing the rendering. When you're done with it you destroy the object to free the resource.</p>
<p>&nbsp;</p>
<p>Also, according to XKCD, most real-world codebases are measured using the scientific unit &quot;wtfs-per-minute&quot;.</p>

#1Khatharr

Posted 26 December 2012 - 09:08 PM

How does encapsulation prevent sharing?


PARTNERS