

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Abstraction - ANSa Pillar of OOP; hiding of information; a superclass that can't be instantiated; must be called when a subclass extends its superclass; abstract methods do not provide implementation; if class has any abstract methods, must explicitly be declared abstract. (ex. update() & draw() in sprite(); allows you to create functionality that subclasses can implement or override Casting - ANSconverts one variable type to another Closures - ANSa function having access to the parent scope, even after the parent function has closed; runs once; returns a function expression; makes it possible for a function to have "private" variables. collection - ANSpredefined data structures provided by java API; stores groups of related objects in memory; provide efficient methods that organize, store & retrieve data w/out requiring knowledge of how the data is being stored; a framework that provides an architecture to store & manipulate the group of objects deep copy - ANScreates a new object and recursively adds the copies of nested objects presents in the original elements; stores copies of objects value; doesn't reflect changes made to the new /copied object in the original object Encapsulation - ANSa pillar of OOPO; grouping of information; the bundling of data, along with the methods that operate on that data, into a single unit; i.e. class --> methods --> variable
Event-Driven Programming - ANSGUI; where the flow of a program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or message passing from other programs or threads Functional Programming - ANSA programming paradigm that uses functions to create programs/ the process of building software by composing pure functions, avoiding shared state, mutable data, and side-effects; declarative; application state flows through pure functions Graphical User Interface (GUI) - ANSPresents a user-friendly mechanism for interacting with an app; gives an app a distinctive "look-and-feel;" uses windows, icons, and menus to carry out commands, such as opening, deleting, and moving files Imperative Programming - ANSImperative programming, as opposed to functional programming, is a paradigm in programming that is often referred to as procedural, where a developer writes code that describes in exacting detail the steps that the computer must take to accomplish the goal. Most of the mainstream programming languages, such as C++, Java, and Python, are considered imperative languages. inheritance - ANSa pillar of OOP; sharing of information; class extending another class, gets access to the parent/super class's methods; class that is derived form another class, subclass, "inherits" from the parent class Interface - ANSmust be public; only constants and abstract methods; may not specify any implementation detail (no instance variables or concrete methods); all methods declared are implicitly public abstract and all fields are implicitly public, static, and final; used to specify a behavior that classes must implement; can be implemented by a class; allows you to define functionality, not implement it. iterators - ANSallows us to loop/walk through collections (ArrayList); ex iterator code: list = bricks.iterator(); while (list.hasNext()) { b = list.next();}