click below
click below
Normal Size Small Size show me how
AP COMPSCI
| Question | Answer |
|---|---|
| Abstract classes | Classes that contain abstract and concrete methods, and serve as blueprints to sub-classes. Classes can only implement one abstract class. |
| Interfaces | Classes that contain only abstract methods, and serve as contracts that other classes must follow when implementing. Classes can implement multiple interfaces. |
| polymorphism | the process of writing methods that, although having the same name, result in different actions from references (robots) |
| references | what gives computers information about where to build objects. Marked with = ex: UrRobot Karel = new UrRobot(1, 3, East, -1); |
| objects | variables created in classes to execute methods. |
| classes | separated blocks of code that can contain methods, constructors, objects, and references. Classes can be public or private, and extend or implement something. |
| public and private | public = can be seen and used by other classes private= is exclusive to that class, cannot be re-used |
| null | objects that return or produce nothing. |
| NullPointerException | the issue of calling methods from objects that are null. You will receive this error. |
| Constructers | code that sets limitations and expectations of objects. Ex: (int street, int avenues, Direction direction, int beepers) int = integers |
| OOP | Object Oriented Programming |
| Step-Wise refinement | breaking complex problems into smaller problems, which require simpler solutions |
| parameters | additional information that is sent to an object that can have any type |