100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

CMSC132 QUESTIONS AND ANSWERS FULLY SOLVED

Beoordeling
-
Verkocht
-
Pagina's
7
Cijfer
A+
Geüpload op
23-06-2025
Geschreven in
2024/2025

Exam of 7 pages for the course CMSC 132 at CMSC 132 (CMSC132)

Instelling
CMSC 132
Vak
CMSC 132









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
CMSC 132
Vak
CMSC 132

Documentinformatie

Geüpload op
23 juni 2025
Aantal pagina's
7
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

CMSC132

Abstraction provides - answer high level model of activity

Procedural abstraction - answer Specifies actions performed
hides algorithms

Data abstraction - answer Specifies data objects for the problem
Hides implementations

Encapsulation - answer hides implementation details while providing interface
(methods) for data access
allows us to use code without knowing its implementation
makes debugging and code modification simple

Interface - answer Set of abstract methods
Specifies a contract for a class to implement

Class - answerimplements/defines contract

Collection - answergroups multiple elements into one object

Inheritance - answer- Process in which a derived class (subclass) is created from a
base class (superclass)
- inherits all the superclass methods and instance variables that are marked protected
or public
Creates a hierarchical structure for a group of objects, avoids code duplication

Shadowing - answerOverriding variables in subclasses

Inheritance and private - answerAll private data is inherited by subclasses
However, private members of a superclass cannot be accessed directly

When an object/method is marked protected it is accessible by... - answer- any
subclasses
- any class in the same package

The class Object has these methods... - answerequals(Object other)
toString()

Late (dynamic binding) - answermethod that is called depends on the objects actual
type, not the declared type of the reference variable
Java uses late binding

, Provides more flexibility

Overloading - answerWriting multiple methods of the same name with different number
of parameters/parameter types

Overriding - answerRedefining a method in a subclass

protected access modifier - answerOnly subclasses and classes in the same package
can access

No access modifier (package protected) means class that are _________ can access -
answerIn the same package

Early (static) binding - answermethod that is called depends on the declared type of the
reference variable
More efficient

Abstract class (what and why) - answerClass that cannot create an actual object
Used if logical values cannot be defined for instance variables
public class abstract Animal{
...}
Required if class contains an abstract method

Abstract method - answerProvides method signature
method that does not have any implementation
Why? every subclass will have method (implement in own way)
require abstract class
Cannot be final

What are 3 common uses of Interfaces? - answerPrimary purpose: specifying minimum
functional requirements for a class
Workaround for Java's lack of multiple inheritance
Rare: For defining groups of related symbolic constants

Rules for overriding methods regarding access specifier... - answerDerived class may
change the access specifier, but cannot decrease visibility

How do you disable overriding in derived classes - answerUse "final"

Inner classes (what and why) - answerClass defined in scope of another class
Outer/inner class can access all of each others methods and fields
Has an instance of the outer class object as soon as it is created

Nested Class (what and why) - answerSimilar to inner class but declared "static"
No linkage to outer class
Only access to static methods and fields of outer class
€15,30
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Dreamer252 NBursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
478
Lid sinds
2 jaar
Aantal volgers
293
Documenten
21304
Laatst verkocht
1 week geleden

4,0

115 beoordelingen

5
60
4
22
3
18
2
2
1
13

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen