C Sharp Flashcards
Data members
characteristics of the class
methods
behaviors of the class-the things it can do
Class
entity that is a logical grouping of data behavior members
Namespace
acts like a container to provide a way to group similar classes
Return value
output from a method - must be the data type of the value returned
parameter list
input into a method - each parameter must state the data type and the name.
Access modifier
defines the circumstances under which variables, methods, and classes can be accessed
public
anyone can access
private
accessed only by the class it’s self - only by the class it lives in
main method
entry point into a C# application
byte
reserves 1 byte of memory 0-255
sbyte
reserves 1 byte of memory -128/127
short
reserves 2 bytes of memory -32,768-32,767
ushort
reserves 2 bytes of memory; 0 - 65,535
int
4 bytes of mem; -2,000,000,000 - +2,000,000,000`