Docsity

MTA Software Development Fundamentals - Chapter 2: Objects and Classes, Exams of Biology

Toggle sidebar
bg1
MTA Software
Development
Fundamentals -
Chapter 2
Objects - answer __________ are self-contained data
structures that consist of properties, methods, and
events. They are created from the templates
defined by classes.
Class - answer A ________ is the template from which
individual objects are created.
Method - answer A _________ is a block of code
containing a series of statements.
Constructors - answer ______________ are used to
initialize the data members of the object.
pf3
pf4
pf5

Partial preview of the text

Download MTA Software Development Fundamentals - Chapter 2: Objects and Classes and more Exams Biology in PDF only on Docsity!

MTA Software

Development

Fundamentals -

Chapter 2

Objects - answer __________ are self-contained data structures that consist of properties, methods, and events. They are created from the templates defined by classes. Class - answer A ________ is the template from which individual objects are created. Method - answer A _________ is a block of code containing a series of statements. Constructors - answer ______________ are used to initialize the data members of the object.

Properties - answer ________ allow you to access class data in a safe and flexible way. Auto-implemented properties - answer _______________ simplify property declarations. This - answer The ________ keyword can be used to access members from within constructors, instance methods, and accessors of instance properties. Delegates - answer __________ are special types that are used to encapsulate a method with a specific signature. Events - answer __________ are a way for a class to notify other classes or objects when something of interest happens. Publisher - answer The class that sends a notification is called a _________ of the event. Subscriber - answer The class that receives a notification is called a _______ of the event. Namespace - answer A ____________ allows you to organize code and create unique class names.

Internal - answer Using the ___________ access modifier will mean access is restricted to the code in the same assembly. Protected internal - answer Using the _____________ access modifier will mean access is restricted to any code in the same assembly and only to derived classed in another assembly. Inheritance - answer __________ enables you to create new classes that that reuse, extend and modify the functionality defined in existing classes. Derived class - answer A __________ is a class that inherits the functionality of of another. Base class - answer A ________ is a class whose functionality is inherited by others. Abstract classes - answer _____________ provide a common definition of a base class that can be shared by multiple derived classes.

Sealed classes - answer ____________ provide complete functionality but cannot be used as base classes. Polymorphism - answer _________ is the ability of derived classes to share common functionality with base classes but still define their own unique behavior. Override - answer The ________ keyword, replaces a bases class member in a derived class. New - answer The ________ keyword, creates a new member of the same name in the derived class and hides the base class implementation. Interfaces - answer _________ are used to establish contracts through which objects can interact with each other without knowing the implementation details. Abstract - answer A class that does not provide a complete implementation must be declared with the keyword _________. CompareTo - answer Classes that want to support comparison must implement the IComparable