100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 2050 Definitions Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution CA$11.44   Add to cart

Exam (elaborations)

CSE 2050 Definitions Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

 8 views  0 purchase
  • Course
  • Institution

CSE 2050 Definitions Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

Preview 1 out of 3  pages

  • June 24, 2024
  • 3
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
CSE 2050 Definitions
Inheritance - ANS-A class is an instance of another class
Custom class gets all attributes of parent class.
It models "is a" relationship

ex: class Animal():
class Mammal(Animal):
class Dog(Mammal)

Composition - ANS-A class has an instance of another class.
Custom class gets instance of another classes.
It models "has a" relationships.

ex: class Car():
def __init__(self):
self.motor = Motor()
self.tires = Tires()

Superclass and Subclass - ANS-The class from which another class inherits is called
the parent or superclass.

A class which inherits from a superclass is called a subclass.

Encapsulation - ANS-The packing of data and functions that work on that data within a
single object. A class is an example of encapsulation because it encapsulates all of the
data that is member functions, variables and etc.

Public and Private methods - ANS-Any attribute that starts with an underscore is
considered private and cannot be accessed from outside that class. (ex: _ lastentry)

Any attribute that can be accessed from outside the class is called a public method.

Abstract Data Type - ANS-Describes what data can be stored and what we can do with
that data.
It is independent of its implementation which means can use any data structure or
algorithm.

Stack - ANS-LIFO

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Hkane. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for CA$11.44. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79271 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
CA$11.44
  • (0)
  Add to cart