Proper Class Design Part 2

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=Fu79e0CXobw



Duration: 1:07:39
304 views
3


Today we continued our discussion of how to do proper class design, and ran through the creation of a Circle class. Classes, at their heart, are data + operations you can do on that data. They use a division between a public interface and private member variables to preserve "invariants", which are rules that must always be true about your class, such as the radius of a circle never being less than 0.







Tags:
csci 41
adt
pods
class design
oop
object oriented programming
invariant