Podcast
Questions and Answers
What is an abstract class?
What is an abstract class?
What does Abstraction mean in OOP?
What does Abstraction mean in OOP?
Creating a model of an object to determine characteristics and behaviors.
Use MustOverride keyword for an __________.
Use MustOverride keyword for an __________.
abstract method
What are accessor methods?
What are accessor methods?
Signup and view all the answers
Using _______ simplifies writing property procedures in VB 2010.
Using _______ simplifies writing property procedures in VB 2010.
Signup and view all the answers
What is a base class?
What is a base class?
Signup and view all the answers
What is a child class?
What is a child class?
Signup and view all the answers
Defining your new ___ is like creating a new tool for the toolbox.
Defining your new ___ is like creating a new tool for the toolbox.
Signup and view all the answers
What is a constructor?
What is a constructor?
Signup and view all the answers
If the class does not have a constructor, the compiler creates an implicit method called the _______.
If the class does not have a constructor, the compiler creates an implicit method called the _______.
Signup and view all the answers
What is a destructor?
What is a destructor?
Signup and view all the answers
____ refers to the combination of all properties, methods, and events of an object.
____ refers to the combination of all properties, methods, and events of an object.
Signup and view all the answers
What is garbage collection?
What is garbage collection?
Signup and view all the answers
What is inheritance in OOP?
What is inheritance in OOP?
Signup and view all the answers
The object that is created based on a class is called ____. An actual occurrence of the class is an ____.
The object that is created based on a class is called ____. An actual occurrence of the class is an ____.
Signup and view all the answers
What is an instance variable?
What is an instance variable?
Signup and view all the answers
The process of creating a new object is called ____. When you create a cookie using a cookie cutter, you __________ an object.
The process of creating a new object is called ____. When you create a cookie using a cookie cutter, you __________ an object.
Signup and view all the answers
What is a multitier application?
What is a multitier application?
Signup and view all the answers
What does the MustInherit keyword specify?
What does the MustInherit keyword specify?
Signup and view all the answers
What does the MustOverride keyword indicate?
What does the MustOverride keyword indicate?
Signup and view all the answers
What is an object in OOP?
What is an object in OOP?
Signup and view all the answers
What is overriding in OOP?
What is overriding in OOP?
Signup and view all the answers
What is a parameterized constructor?
What is a parameterized constructor?
Signup and view all the answers
What is a parent class?
What is a parent class?
Signup and view all the answers
What does polymorphism refer to in OOP?
What does polymorphism refer to in OOP?
Signup and view all the answers
The characteristics of the instances of classes are called a ____. You can refer to the _____ of your instances.
The characteristics of the instances of classes are called a ____. You can refer to the _____ of your instances.
Signup and view all the answers
What is a property procedure?
What is a property procedure?
Signup and view all the answers
What does the Protected keyword specify?
What does the Protected keyword specify?
Signup and view all the answers
What does the ReadOnly keyword indicate?
What does the ReadOnly keyword indicate?
Signup and view all the answers
What is reusability in OOP?
What is reusability in OOP?
Signup and view all the answers
What is a shared variable?
What is a shared variable?
Signup and view all the answers
What is a subclass?
What is a subclass?
Signup and view all the answers
What is a superclass?
What is a superclass?
Signup and view all the answers
In a property procedure, the value keyword is used to refer to the incoming value of the property using the SET statement with: SET...ClassVariable = ______.
In a property procedure, the value keyword is used to refer to the incoming value of the property using the SET statement with: SET...ClassVariable = ______.
Signup and view all the answers
What is visual inheritance?
What is visual inheritance?
Signup and view all the answers
What is OOP (Object-oriented programming)?
What is OOP (Object-oriented programming)?
Signup and view all the answers
What is Visual Basic.Net?
What is Visual Basic.Net?
Signup and view all the answers
What is a method in OOP?
What is a method in OOP?
Signup and view all the answers
The two steps for creating a new object are to declare a variable for the new object and __________.
The two steps for creating a new object are to declare a variable for the new object and __________.
Signup and view all the answers
What is MyBase.New()?
What is MyBase.New()?
Signup and view all the answers
What is overloading?
What is overloading?
Signup and view all the answers
What are the components of a Three-Tier Application?
What are the components of a Three-Tier Application?
Signup and view all the answers
To override a method, the original method must be declared as Overridable or MustOverride, and the new method must use the keyword __________.
To override a method, the original method must be declared as Overridable or MustOverride, and the new method must use the keyword __________.
Signup and view all the answers
What is the Object Browser?
What is the Object Browser?
Signup and view all the answers
Study Notes
Object-Oriented Programming Concepts in Visual Basic
-
Abstract Class: A base class intended solely for inheritance, defined with
MustInherit
. Cannot create instances directly; requires subclasses to override defined methods usingMustOverride
. -
Abstraction: Modeling of real-world entities to determine their properties and methods; aids in the planning stages of object-oriented (OO) programs by identifying needed classes.
-
Abstract Method: Declared with the
MustOverride
keyword, serves as a placeholder for methods that must be implemented in derived classes; contains no functionality on its own. -
Accessor Methods: Provide a way to access class properties, using
GET
for retrieving values andSET
for updating them. -
Auto-Implemented Property: Introduced in VB 2010, allows the declaration of class properties without explicitly defining
GET
orSET
procedures; the compiler automatically generates this structure. -
Base Class: The original class, also known as the superclass or parent class, from which other classes derive.
-
Child Class: The class that inherits from a base class, also referred to as a subclass or derived class.
-
Class Definition: A blueprint for creating objects; defines the structure and behavior but does not create instances itself.
-
Constructor: A special method invoked automatically upon instantiation of an object using
NEW
. Ideal for initialization tasks; must be defined in every class unless a default constructor suffices. -
Default Constructor: An implicit constructor generated by the compiler if none are defined; has no parameters.
-
Destructor: Method that executes when an object is destroyed, called
Finalize
in VB, typically used for cleanup tasks. -
Encapsulation: Bundling of properties, methods, and events in a single unit to promote data hiding; variables should be declared as
Private
orProtected
. -
Garbage Collection: A feature of the .NET CLR that automatically cleans up unused objects, freeing memory and resources. It activates any defined
Finalize
procedures. -
Inheritance: Mechanism to create new classes based on existing ones, enabling enhancements without altering the original; allows use of base class functionality in derived classes.
-
Instance: A specific occurrence of a class; every object created from the class represents an instance, allowing for multiple objects based on a single class definition.
-
Instance Variable: A variable specific to an instance of a class; each object maintains a separate copy, unlike shared variables.
-
Instantiate: The process of creating a new object from a class; involves declaring a variable and using
NEW
to initialize it. -
Multitier Application: Design strategy that separates application functions across multiple layers, enhancing modularity and deployment flexibility.
-
MustInherit & MustOverride: Keywords indicating that a class is abstract and cannot be instantiated directly, and methods that require overriding in derived classes, respectively.
-
Object: An instantiation of a class that combines code and data, capable of generating events and possessing properties and methods.
-
Overriding: A feature allowing subclass methods to have the same name as those in the base class but with distinct implementations.
-
Parameterized Constructor: A constructor requiring arguments, facilitating passing parameters during object creation.
-
Polymorphism: Ability of methods to operate under multiple forms; allows method calls to be made across different classes that implement the same method signatures differently.
-
Property: Characteristics of class instances, can be retrieved or modified, representing attributes like flavor or topping in a cookie object.
-
Property Procedure: Facilitates external access to class properties; includes methods for manipulating property values through
SET
andGET
. -
Protected Modifier: Limits access to class elements, making them available only within that class or its subclasses.
-
ReadOnly Modifier: Specifies that a property can only be read and not modified, restricting access to its
GET
procedure. -
Reusability: One of the primary advantages of OOP, allowing functionalities from one class to be utilized in another, enhancing code efficiency and reducing redundancy.
-
Shared Variable: Declared with the
Shared
keyword, these variables exist for all instances of a class, unlike instance variables which are unique to each instance. -
Visual Inheritance: A feature that allows a derived form to inherit design properties from a base form, promoting consistency in UI design.
-
Three-Tier Application Architecture: Divided into:
- Presentation Tier: User interface components.
- Business Service Tier: Validation, calculations, and business logic.
- Data Tier: Handles data storage and retrieval.
-
Steps to Override a Method: Use
Overridable
orMustOverride
in the base class method andOverrides
keyword in the derived class method. -
Object Browser: A tool for exploring classes, properties, methods, and events, useful for understanding system and user-defined classes.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Explore the concepts of object-oriented programming in Visual Basic with this set of flashcards. Learn about essential terms such as abstract classes and abstraction, crucial for understanding inheritance in OOP. Ideal for students looking to reinforce their grasp of advanced programming concepts.