COMPSCI 2S03 Lecture Notes - Lecture 9: Object-Oriented Programming, Linked List
Document Summary
Data type: organize data and methods, method of organizing data, way of organizing data. Two types of data types: user defined data types, primitive data types. First concept in object oriented programming: encapsulation (everything in one class, abstraction, inheritance, polyporphisms, abstract classes. Constructor is same name of the class, default one has no parameters. Set and get (access fields attributes using dot operators (. ) It has the methods pop, push isempty isfull. With user defined classes, you"re comparing reference values so you cannot use use.