CIS150 C# Ch 5 Encapsulation

CIS150 C# Ch 5 Encapsulation

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

getters

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (28)

Section 1

(28 cards)

getters

Front

special methods that retrieve the value of a data member without changing it; also called accessors

Back

Pascal Case

Front

First word begins with uppercase

Back

instantiating the class

Front

creating an instance of the class by calling the class constructor

Back

new

Front

used as an operator to call constructor methods

Back

constructor

Front

special method used to create instances of a class; method has the same name as the class name

Back

auto property initializer

Front

sets the value of read-only properties during the property declaration

Back

attribute

Front

characteristic

Back

protected

Front

accessible only by this class or classes derived from this class

Back

encapsulation

Front

internal representation of an object is generally hidden

Back

entity

Front

person, place or thing

Back

field

Front

attribute

Back

private

Front

accessible only to this class

Back

ToString Method

Front

One of the four methods inherited by all user-defined classes. Returns the namespace.classname

Back

internal

Front

accessible by all in this project

Back

class diagram

Front

visual representation of class data and behaviors

Back

method

Front

action taken by a class object

Back

overloading

Front

implementing the same method with a different constructor

Back

protected internal

Front

accessible by all in this project and any classes derived from this class

Back

class

Front

encapsulation of data and behaviors into a single package or unit; also called a type

Back

auto-implemented properties

Front

simply write get; and set; as the body for class properties

Back

accessors

Front

special methods that retrieve the value of a data member without changing it; also called getters

Back

mutators

Front

special methods that change the current state or value of an object member's data; also called setters

Back

access modifier

Front

specifies the level of accessibility for types and their members

Back

instance methods

Front

methods, or actions, defined in the class

Back

argument

Front

data expected by constructor to be passed as parameter by instantiating method

Back

object

Front

definition of an item with distinct capabilities

Back

setters

Front

special methods that change the current state or value of an object member's data; also called mutators

Back

public

Front

accessible to all

Back