Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Examen

Cisc 181 exam 2 questions with verified answers graded A+

Note
-
Vendu
-
Pages
6
Grade
A+
Publié le
10-03-2025
Écrit en
2024/2025

Cisc 181 exam 2 questions with verified answers graded A+

Établissement
Cisc 181
Cours
Cisc 181









Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
Cisc 181
Cours
Cisc 181

Infos sur le Document

Publié le
10 mars 2025
Nombre de pages
6
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Sujets

Aperçu du contenu

Cisc 181 exam 2 questions with verified
answers graded A+

Default values - correct answer ✔✔Any method or function can provide default values for its
parameters in the function signature



We can add methods to our classes to create ___ that ___ methods that can work on that data -
correct answer ✔✔Objects, encapsulates



If member variables are public, we can't - correct answer ✔✔Change the internal
representation (ex: Person class with age variable set as number, but later on I change it to
string, this messes the code all up). Accessible from anywhere. Can access public members in
subclass



Super - correct answer ✔✔Calls constructor of parent and rages whatever args as constructors



If they are private, - correct answer ✔✔Hides info from users. Our class will have a public
interface which may be separate from its internal representation. Can be changed so long that
the public interface still works as expected (since users don't have direct access anyways)



How to deep copy? - correct answer ✔✔Teach each class how to clone itself, then use these
methods if we have a class that contains another class (composition)



What if it contains a primitive type inside? - correct answer ✔✔If we use spread it creates
shallow copy. We need to iterate through the array given, clone each, create a new array of
clones that we can pass to constructor of the new object

, Method - correct answer ✔✔A function that is associated with an object and called using dot
notation.



Composition - correct answer ✔✔When a class contains another class we add the second class
as a property of the first



Inheritance - correct answer ✔✔Build complex hierarchies of objects in order to define new
types that are a type of some existing type



is-a vs. has-a - correct answer ✔✔- Is-A: used to describe -> child of a parent class

- Example: Inheritance

Phone class is a (or is a type of) Device (also a class)



- Has-A:

-> Is used to describe the characteristics that define an object

data members that have a relationship to the class

-> Example: composition

Class Color is used in Class Point. The point has a (or contains a) color



Extends - correct answer ✔✔creates the inheritance relationship between subclass (child) and
superclass (parent). What we extend- the superclass

What we create by extending- subclass



How to call superclass constructor within subclass constructor - correct answer ✔✔Super()
takes same args as constructor of superclass



Private - correct answer ✔✔Only accessible within the class.
$13.49
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
BravelRadon Havard School
Voir profil
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
886
Membre depuis
4 année
Nombre de followers
540
Documents
42758
Dernière vente
1 jours de cela
EXAM HUB

Welcome to Exam Hub Are you looking for high-quality, exam-ready notes, past papers, Test Banks, and well-researched study materials to boost your grades? You’re in the right place! I create and upload detailed, easy-to-understand, and well-structured documents across multiple subjects. All my materials are designed to help you study , save time, and excel in your coursework and exams! On this page NURSING EXAMS,STUDY GUIDES,TESTBANKS AND QUALITY EXAMS IS THE KEY TO STUDENTS CAREER EXCELLENCE, you find all documents, package deals, and flashcards offered by BravelRadon (EXAM HUB STORES!)....kindly recommend a friend for A+ GARANTEEd either you are a first-year student or final-year graduation! best of luck!

Lire la suite Lire moins
3.5

157 revues

5
57
4
30
3
32
2
8
1
30

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions