Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

OOP - Mod 5

Answer
______ - for all classes ________ - only within its class __________- subclasses only public private protected (#)
Class: a class that can never be sub-classed Variable: constant variable Method: a method that cannot be overridden final modifier
The ____modifier is accessible only within the package. If you don't use any modifier, it is treated as ________ by ___________ default
The ____________ access modifier is accessible within and outside the package but through inheritance only. It can be applied on the data member, method and constructor. It can't be applied on the class protected
Variable: a variable that is accessible from all classes. Method: a method that is accessible from all classes. public
Variable: a variable that is only accessible within a class where it is declared. Method: a method that is only accessible within the class where it is declared private
Variable: used in defining a class variable. Method: used in defining a class method. static mofier/qualifier
___________-accessed by classes within the same package ___________- no symbol indicates default access ___________ - represents abstract class method ___________- represents static method or attribute ~package "" italics underline
represents the concepts in the domain conceptual
a template or blueprint that defines an object’s attributes and operations and that is created at design class
a method that is automatically executed when an object is created. This method is used to initialize the attributes constructor
a method that is used to access or retrieve data Accessor (Getter)
a method that is used to change the data. Mutator (Setter)
a new class with properties taken from a parent class subclass (derived class)
a well-encapsulated conceptual class. The objects of this class do not exist in real world abstract class
ability to process objects differently depending on their data type or class Polymorphism
Accessibility: Public (+), Private (-), Protected (#)
accessible from all objects class variable
allows an object to extend its characteristics to another object. Inheritance
are the actions performed on that data operations
are the data contained in a class attributes
contains a reference to the current object being constructed. It represents an instance of the class in which it appears. It can be used to access class variables and methods this keyword
data used in a method. This data is temporary and does not exist once the method has completed execution Local Variables (method variables or local data)
declared either at the start or end of a class definition. These variables identify the data stored in the object. Attributes
describes how classes will implement their interface Implementation
exists when an object contains a reference to another object. Referred to as the “has a” relationship Association
expressed in terms of: one to one, one to many, and many to many Cardinality
focus is on the interfaces of Abstract Data Type (ADTs) in the software Specification
implement the business rules for which the application is being developed. Custom Methods
In a class diagram, which of the following would represent a static method? A) Italicized method name B) Underlined method name C) Bold method name D) Method name with a + symbol B) Underlined method name
In the context of object-oriented programming, which relationship is described as an “is-a” relationship? A) Association B) Encapsulation C) Inheritance D) Abstraction C) Inheritance
In UML, what does the + symbol represent in a class diagram? A) Private access B) Protected access C) Public access D) Package access C) Public access
is a running instance of a class that consumes memory and has a finite lif object
is a general-purpose notational language used for specifying and visualizing complex software, usually large object-oriented project. It uses several types of diagrams such as the case diagram, class diagram, and state chart diagram Unified Modeling Language (UML)
is a technique of solving a problem and breaking it down into smaller parts and solving each of the smaller problems Procedural Programming
is used to describe the attributes and behaviors of objects in the system class diagram
It describes the task to be performed on objects. These objects that have to be created and stored in the computer memory, contain data and instructions to perform tasks specific to that object Object-oriented programming
It uses a collection of objects interacting with each other. Object-oriented programming
referred to as the “kind of” or “is a” relationship Inheritance
specific for an object Instance Variables
T OR F: A diagram can be interpreted from various perspectives T
The focus of {_________- is to break down a programming task into a collection of variables, data structures, and subroutines PROCEDURAL PROGRAMMING
the parent class from which properties are inherited by another class superclass (base class)
the process of hiding the implementation details of an object. Encapsulation
the process of picking out the common features of objects and procedures. This process focuses on the essential characteristics of an object Abstraction
this model of software development is process-centric or procedural since it concentrates on the procedures in a system Procedural Programming
used to change or access the private data in an object. Standard Methods
variables stored in each object of a class, usually referred to as the non-static member fields of a class Instance Variables (non-static fields)
variables stored in the class and are available to all objects of a class or objects of other classes if access is permitted, usually referred to as the static members of the class. Class Variables (static fields )
What is the purpose of the this keyword in Java? A) Refers to the superclass of the current object. B) Refers to the static members of the class. C) Refers to the current instance of the class. D) Refers to the main method of the class. C) Refers to the current instance of the class.
Which concept in OOP allows a subclass to define its own behavior while inheriting the interface from a parent class? A) Encapsulation B) Polymorphism C) Abstraction D) Inheritance B) Polymorphism
Which modifier allows a method to be accessed by any class? A) private B) protected C) public D) final C) public
Which of the following best describes encapsulation? B) Restricting direct access to some of an object's components.
Which of the following is NOT a benefit of OOP? A) Code reusability B) Simplified debugging C) Global variable usage D) Easier maintenance C) Global variable usage
Which of the following OOP principles is demonstrated by the ability of different classes (such as Circle and Square) to implement a method draw() in their own way? A) Abstraction B) Inheritance C) Polymorphism D) Encapsulation C) Polymorphism
Which of the following statements is true about abstract classes? C) An abstract class can have both abstract and concrete methods.
Created by: hdjks
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards