[COMP 250] - Final Exam Guide - Ultimate 270 pages long Study Guide!

291 views270 pages

Document Summary

This is a very common way to represent graphs, and it is minimalist in the sense that you are only writing down edges. class vertex { Subclasses might do things differently, so it makes sense that they might need to be printed differently than the superclass. Should this be true or false: true. The way interfaces work: you design a type with some methods, but no implementations. Just saying that these methods characterize a thing. For example, you have an interface called shape". In the bottom boxes is where we implement classes. The methods which are in the interface shape actually get implemented at the bottom, in the rectangle and circle classes. There are two types of things: classes and interfaces . Classes are related in a tree structure by inheritance. The tree goes up to the parent which, in java, is the object class. On the other hand, the interfaces are just floating around .

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

Related Documents