Introduction to Object - Oriented Programming

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

events

(1) Event is an action or occurrence detected by a program. Events can be user actions, such as clicking a mouse button or pressing a key, or system occurrences, such as running out of memory.

method

A method in object-oriented programming (OOP) is a procedure associated with a message and an object. ... In class-based programming, methods are defined in a class, and objects are instances of a given class. One of the most important capabilities that a method provides is method overriding.

namespace

A namespace in computer science (sometimes also called a name scope), is an abstract container or environment created to hold a logical grouping of unique identifiers or symbols (i.e. names). ... The same identifier can be independently defined in multiple namespaces.

properties

A property, in some object-oriented programming languages, is a special sort of class member, intermediate in functionality between a field (or data member) and a method.

value type

A value type in computer programming is a coded object that involves memory allocation directly where it is created. Value types are commonly contrasted to reference types that instead act as pointers to a value that is stored elsewhere.

abstract classes

Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods.

access modifier

Access modifiers (or access specifiers) are keywords in object-oriented languages that set the accessibility of classes, methods, and other members. Access modifiers are a specific part of programming language syntax used to facilitate the encapsulation of components.

constructors

Constructor is a block of code that allows you to create an object of class. This can also be called creating an instance. Constructor looks like a method but it's not, for example methods can have any return type or no return type (considered as void) but constructors don't have any return type not even void.

delegates

Delegate is a type which holds the method(s) reference in an object. It is also referred to as a type safe function pointer. We can say a delegate is a type that defines a method signature. ... Delegates can be used to define callback methods.Jan 11, 2010

encapsulation

Encapsulation refers to the bundling of data with the methods that operate on that data. Encapsulation is used to hide the values or state of a structured data object inside a class, preventing unauthorized parties' direct access to them. ... This mechanism is not unique to object-oriented programming.

auto implemented properties

In C# 3.0 and later, auto-implemented properties make property-declaration more concise when no additional logic is required in the property accessors. They also enable client code to create objects.Jul 20, 2015

signature

In computer programming, especially object-oriented programming, a method is commonly identified by its unique method signature, which usually includes the method name, and the number, types and order of its parameters. A method signature is the smallest type of a method.

interfaces

In computing, an interface is a shared boundary across which three separate components of a computer system exchange information. The exchange can be between software, computer hardware, peripheral devices, humans and combinations of these.

class

In object-oriented programming, a class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions or methods).

inheritance

In object-oriented programming, inheritance is the concept that when a class of objects is defined, any subclass that is defined can inherit the definitions of one or more general classes.

reference type

In programming language theory, a reference type is a data type that refers to an object in memory. A pointer type on the other hand refers to a memory address. ... When a reference type variable refers to an immutable object it behaves with the same semantics as a primitive value type.

polymorphism

Polymorphism is an object-oriented programming concept that refers to the ability of a variable, function or object to take on multiple forms. A language that features polymorphism allows developers to program in the general rather than program in the specific.

sealed classes

Sealed classes prevent derivation. Because they can never be used as a base class, some run-time optimizations can make calling sealed class members slightly faster. A method, indexer, property, or event, on a derived class that is overriding a virtual member of the base class can declare that member as sealed.Jul 20, 2015

static numbers

Static numbers belong to a class itself rather than individual objects

accessors

They are also widely known as setter methods. Often a setter is accompanied by a getter (also known as an accessor), which returns the value of the private member variable. The mutator method is most often used in object-oriented programming, in keeping with the principle of encapsulation.

objects

object program - Computer Definition. A machine language program ready to run in a particular operating environment. It has been assembled or compiled, and linked. This is an early term that has no relationship to object technology. See linker and object-oriented programming.


Kaugnay na mga set ng pag-aaral

Urban Sociology Final themes/terms

View Set

COMS 100 Midterm Review Questions

View Set