2.7 Create classes in Finance and operations apps Flashcards
Classes definition?
Classes contain data and methods that represent the state and behavior of an object
Why add classes?
To declare new elements variables or methods
Manipulate data
What does using “final” keyword do?
Helps prevent the class from being inherited
What does using “extends” keyword do?
Used when your class is being derived from another class
New method definition?
Creates an instance of the class by using “new” keyword
Finalize method definition?
A destructor method that finalizes an instance of a class by using the “finalize” keyword
Main method definition?
Creates an instance of an object and calls the required member methods.
Class method that is run directly from a menu option
Instance method definition?
Referred to object method, it is embedded in each object that is created from the class that contains the instance method
Static method definition?
Class method, it uses the “static” keyword and belongs to a class.
You don’t need to instantiate an object before you use the method
When are static methods commonly used?
When working with data that is stored in tables
Select method?
Declares the data that will be modified
Insert method?
Used to add one or more records to a table
Update method?
Used to modify the current record based on conditions
Where clause?
Used to specify a condition that the update method will test as it processes each row of the table
Delete method?
Used to remove records from a table