CS 1114 Lecture Notes - Lecture 1: Unit Testing, Short Circuit, Test Case

144 views4 pages

Document Summary

Objects have properties which allow them to respond to commands and determine how they will respond. Inheritance allows us to create new objects without starting from scratch. We need to use them to create objects and then execute the objects. When designing software, we want to be as efficient as possible. Color, look, action) then it is inherited from the superclass. Castle extends level means that castle will inherit all of the attributes of level. Super lets you apply new attributes to the parent class. Private is whether other classes can use your method or not, and void means that nothing will be returned. Block block1 = new block(); means that we are building a new object from the block class named block1. Coordinates start in the upper left corner at (0,0). This lets you use methods from the parent class. It is used mostly for the programmer and not the actual program.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents