// The language is Java programing What is an operation or business class? What is a driver class, or driver code, or testing class? What is reason to separate business class from the driver code? Use example foe better understanding.
// The language is Java programing What is an operation or business class? What is a driver class, or driver code, or testing class? What is reason to separate business class from the driver code? Use example foe better understanding.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
// The language is Java
What is an operation or business class? What is a driver class, or driver code, or testing class? What is reason to separate business class from the driver code? Use example foe better understanding.
Expert Solution
Step 1
Class:
- A class is a blueprint from which objects are created.
- The class is a prototype which represents a set of properties and methods that are common for all the objects of the class.
- The declaration of class includes modifiers, class name, body of the class.
Step 2
Business class:
- Business class contains the actual logic or work of the program.
- It is also called operation class, because it hold the actual operations that are accomplished by the program.
- It is designed for specific operation.
Step 3
Driver class:
- The driver class contains the main function of program.
- It is responsible for launching operations in a program.
- It is responsible for converting user program into physical execution unit termed as task.
- Each function should be designed, coded and tested as a separate unit from rest of the program.
- It denotes a testing program for the functions or statement that is been written in code. Because of this driver class also called test class.
- It tests the functionality usually for debugging and code verification.
Step 4
Reason for separating the business and driver class:
- The main reason to separate the business and driver class to enable more clarity about the program and test the individual functions.
- The separation also enables reusability of business class.
- It provides an efficient way to test all the functions and work of the program.
Trending now
This is a popular solution!
Step by step
Solved in 7 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education