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

Exam (elaborations)

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

 4 views  0 purchase
  • Module
  • Institution

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

Preview 1 out of 2  pages

  • June 24, 2024
  • 2
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
CSE 2050 Mod 2 Terms
Object Oriented Programming - ANS-designing a program by discovering objects, their
properties, and their relationships

Class - ANS-A data type that holds different objects

Object - ANS-An instance of a class

Method - ANS-Standard convention to use self as the name of the first parameter to a
method

Initializer - ANS-the __init__ method

magic methods / dunder methods - ANS-Methods that start and end with two
underscores such as __init__ or __str__

Encapsulation - ANS-1. Combining into a single thing, data and the methods that
operate on that data

2. The boundary between the inside and the outside of the class, specifying what is
visible to the users of a class.

This often means partitioning the attributes into public and private

This is done by putting a single underscore in the beginning of a variable name

subclasses - ANS-No inheritance from another class, they function as a base class

superclass - ANS-Common point between other subclasses into one class

ex: class Triangle(polygon)

This is a superclass since a triangle is a polygon, and inherits the characteristics of a
polygon from the polygon superclass

Duck Typing - ANS-Duck typing is the act of determining if an object is of the correct
"type" by simply checking if it has attributes or methods of the right names. This much
weaker than using the type() function, because two completely different classes (and

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 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 $7.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

81989 documents were sold in the last 30 days

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

Start selling

Recently viewed by you


$7.99
  • (0)
  Add to cart