CSC 216 Lecture Notes - Lecture 1: Method Overriding, The Equals, Ipod

59 views5 pages
20 Aug 2016
School
Course
Professor

Document Summary

Object oriented programming (oop): programming reasoning that sees programs as sets of objects, as opposed to a set of actions: object: a programming entity that contains state and behavior. State: internal data of an object, such as fields or instance variables. Behavior: set of actions performed by the object, such as instance (non- static) methods: class: the blueprint for an object. Tells the program how to assemble an object and in what ways they can use the object. Constructors: the method used to create an object: there can be multiple constructors for a single class. However, each constructor must have a different signature: the number and/or types of parameters must be unique. Example: given the class book, you can have two constructors: New book(string name, string author, int index) This means that all objects of the given class go through a common code path. Example: given the class book and the following constructor .

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions