CISC181 Study Guide - Midterm Guide: Plain Old Java Object, Type Signature, Access Modifiers

139 views7 pages

Document Summary

40 points are a coding exercise scheduled for 5:00 in kirkbride 100. 160 points: 45 multiple choices and 12-15 open ended questions. 20 points: this review is worth (bonus points) Oo class: short for clarification, every class has a name, attributes and methods. Attribute: they make-up / describe an object, example: a car is the object. Method: functions or procedures, they have two parts, method signature: contains the method name, access modifier, parameter list, return type (if the method is a function, method implementation: contains the actual code. Its never exposed to the outside world (abstraction). Pojo class: ta(cid:374)ds fo(cid:396) plai(cid:374) ole(cid:859) ja(cid:448)a o(cid:271)je(cid:272)t, there are no special methods involved. It is a basic class with attributes and constructors and getters/setters. Inheritance: classes can inherit one another, when a class inherits another, it gets its public & protected attributes and methods. A superclass can have many subclasses: subclass: a class that is going to inherit another class.