Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 2 fuera de 7 páginas
Examen

CS302 MIDTERM REVIEW Questions and Answers with Verified Solutions | Latest 2026 Update

Document preview thumbnail
Vista previa 2 fuera de 7 páginas

CS302 MIDTERM REVIEW Questions and Answers with Verified Solutions | Latest 2026 Update

Vista previa del contenido

CS302 MIDTERM REVIEW Questions and Answers with Verified
Solutions | Latest 2026 Update




Q: polymorphism

Answer:
Third principle of object oriented programming languages: ABILITY OF AN
OBJECT TO TAKE ON MANY FORMS.

Q: 3 principles of object oriented design

Answer:
Encapsulation, inheritance, and polymorphism

Q: interface, why?

Answer:
if we wanted to ensure that multiple implementations of a data structure share the
same behaviors.

, CS302 MIDTERM REVIEW Questions and Answers with Verified
Solutions | Latest 2026 Update




Q: templated class, why?

Answer:
If we wanted to encapsulate storing a collection of strings and storage behaviors, but
we didn't know what type of object until we write the program. We would use this
tool.

Q: Observers

Answer:
Report back information. (size method of List, returns an int) (relational operators
==, !=, <, >)

Q: Creators

Answer:
create new objects of the type, may take an object as an argument but not an
object of the type being constructed.
ex: int - (assignment operator with numeric literals 0,1,2)
or string - (constructors)

Información del documento

Subido en
9 de julio de 2026
Número de páginas
7
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$13.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
SpencerHenderson
3.7
(53)
Vendido
263
Seguidores
117
Artículos
45452
Última venta
23 horas hace


Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes