Object Oriented Programming Concepts - Assignment

Verified

Added on  2021/08/12

|31
|1680
|187
AI Summary
tabler-icon-diamond-filled.svg

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
1
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Task 01
OOP Concepts
Class
Every class has a class name and class scope. It determines by “{ }”. A class is a destination
from which objects are created. It represents the set of properties or methods or functions that
are common to all objects of one type. Objects are created inside a Class and it comprises
methods and functions which are in one type and common to all objects.
(Anon., n.d.)
DBConnection
DBConnection is used to connect the ‘JDBC-ODBC Bridge’ between the system and the storing
software (SQL Server). DBConnection is basically used to store the data which is input by the
user. When the data is input the DBConnection will pass to the SQL Server to store the data.
Through this the data which known as insert values, retrieve values will be process with the
database. If there is an error with storing, the DBConnection must be rechecked.
Figure 1
Object
Object is
known as a
real-world
thing and it is
2
Document Page
an entity which has state and behavior. The state is represented as properties and the behavior
represented as functions.
For an instance, a car, a bike and any physical or logical thing can be describing as an object.
The states/ properties/ attributes of a car can be illustrated by Color, Speed, Size, Engine and so
on. Moreover, the behavior/ Functionalities of a car will be drive, turn right or left and so on.
(Anon., n.d.)
Figure 2
Inheritance
The classes are inherited by a super class or super classes. In this concept the sub classes are
inherited the variables and other methods from the parent class. This is a crucial part of OOP.
The inheritance in the sense of a class is created upon an existing class and when the new class
inherits from the existing class, the methods and fields of parent class can be used and it is
known as reusability.
Inheritance can be represented the IS-A relationships and can be known as a parent-child
relationship as well.
(Anon., n.d.)
There is diverse type of inheritance
Single
Multi-level
Hierarchical
Hybrid
Multiple
3
Document Page
Figure3
Abstraction
An abstraction is used to hide data in order to reduce the unnecessary features of the system and
make the system as a user friendly. Abstraction depicts the only essential components and the
non-essential components for the user will be hidden. Hence the implementation will be hidden
from the user and only the functionalities will be provided.
(Anon., n.d.)
Polymorphism
Polymorphism can be defined as a concept which is performed a single action in diverse ways.
There are two types in Polymorphism:
Overloading – In here same methods are separating inside a class
Overriding – Same methods are repeating inside the subclass and the superclass
(Anon., n.d.)
4
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Encapsulation
Encapsulation is the concept where data are hidden, in order to hide the complexity of the
system. A completed encapsulated class can be created by making all the data methods of the
class private. In here the variables of a class will be hidden from other classes and the hidden
class can be retrieved only via the methods of the existing class. In Encapsulation there are
different access modifiers:
Private – the property which is accessible only within the class
Public – the property which can access anywhere in the program
Protector – the property which can access anywhere only within package
(Anon., n.d.)
5
Document Page
Task 02
Use case diagram
Figure 4
6
Document Page
Class Diagram
Figure5
7
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Task 03
Figure6
This is the login form where the user can login either as an administrator (admin) or a HR.
Figure8
Figure 7
Here in this form correct user ID and the password should be entered and select the user type
before clicking the login button.
8
Document Page
Figure9
This window will appear when login as an admin.
Figure 10
When the administrator has logged on he can register another person as an administrator or a
HR using this form.
9
Document Page
Figure 11
A logged on administrator will be provided the opportunity to enter the details of employee,
using the above window.
10
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Figure 12
This shows properly filled format of the registration window.
11
Document Page
Figure 13
12
Document Page
Figure 14
This form provides room for the administrator to update employee details.
13
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Figure 15
This shows filled update form.
14
Document Page
Figure 16
This is the format HR officers are given in the opportunity to enter salary details of employees
and save data to the database.
15
Document Page
Figure 17
Task 04
Test Plan
16
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Test case
ID
Test case name Step Result
TC 1 Check Login Form Insert valid user ID
and password
Login as admin/HR
TC 2 Check Login Form Insert invalid user ID
and password
Invalid user
TC 3 Check Register Form Insert user ID and
password and confirm
password
New user registered
TC 4 Check Register Form
Insert user ID and
password and invalid
confirm password
Password and confirm
password should
match
TC 5 Check Employee Register Form Add valid employee
data
Your details have
been registered
TC 6 Check Employee Register
Form(Search)
Insert valid EPF NO
and search
Employee Found
TC 7 Check Update Employee(Search) Insert valid EPF NO
and search
Employee Found
TC 8 Check Update Employee Update valid
employee details
Account Updated
TC 9 Check Update Employee(Clear) Clear employee
details
Clear
TC 10 Check Salary
Calculation(Calculate)
Enter valid details Calculate salary
TC 11 Check Salary Calculation(Save) Click Save Button Save to database
17
Document Page
TEST CASES
Test case
ID
TC 1
Test case
name
Check Login Form
Steps Insert valid user ID and password
Expected
result
New user registered
Status Pass
Screenshot
Figure 18
Test case
ID
TC 2
Test case Check Login Form
18
Document Page
name
Scenario Insert invalid user ID and password
Expected
result
Invalid user
Status Fail
Screensh
ot
Figure 19
Test case
ID
TC 3
Test case
name
Check Register Form
Scenario Insert user ID and password and confirm password
19
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Expected
result
New user registered
Status PASS
Screensho
t
Figure 20
Test case
ID
TC4
20
Document Page
Test case
name
Check Register Form
Scenario Insert user ID and password and invalid confirm password
Expected
result
Password and confirm password should match
Status PASS
Screensho
t
Figure 21
Test case
ID
TC 5
Test case
name
Check Employee Register Form
21
Document Page
Scenario Add valid employee data
Expected
result
Your details have been registered
Status PASS
Screensho
t
Figure 22
Test case
ID
TC 6
Test case
name
Check Employee Register Form(Search)
22
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Scenario Insert valid EPF NO and search
Expected
result
Employee Found
Status PASS
Screensh
ot
Figure 23
Test case
ID
TC 7
Test case
name
Check Update Employee(Search)
Scenario Insert valid EPF NO and search
23
Document Page
Expected
result
Employee Found
Status PASS
Screenshot
Figure 24
Test case
ID
TC 8
Test case Check Update Employee
24
Document Page
name
Scenario Update valid employee details
Expected
result
Account Updated
Status PASS
Screensh
ot
Figure 26
Test case
ID
TC 9
Test case Check Update Employee(Clear)
25
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
name
Scenario Clear employee details
Expected
result
Clear
Status PASS
Screensho
t
Figure 27
Test case
ID
TC 10
Test case Check Salary Calculation(Calculate)
26
Document Page
name
Scenario Enter valid details
Expected
result
Calculate salary
Status PASS
Screensho
t
Figure 28
Test case
ID
TC 11
Test case
name
Check Salary Calculation(Save)
27
Document Page
Scenario Click Save Button
Expected
result
Your details has been registered
Status PASS
Screensho
t
Figure 29
28
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Task 05
CONCLUSION
ABC stationary Company administration system has a manual system as of now to keep up
under records, orders of stock records. In this manner administration of ABC Company chose to
actualize a completely computerized administration system in which capacities are turning into a
fundamental innovation for administration unit. The documentation incorporates all vital data on
the structure and the coding of the program made for ABC Company administration system. This
system can assume a vital part in enhancing nature of system. With the assistance of this system
ABC Company can monitor their selling process and make online orders. The system comprises
highlights to make, spare and pursuit records. Contrasting and the manual system, this system
conquers some quality, shortcoming of this system are,
Strength
High security.
All of data is saved in database.
Get data backups.
Improving the efficiency in the entire system.
Weakness
System can’t access through the internet.
In order to make this software I needed to utilize some Object Oriented Programming ideas,
which help me a great deal in finishing the product. Such as, using of classes and objects,
encapsulating of information used as a part of the software in order to satisfy the requirement.
These concept assume a major role in this successful new software, which is substituted rather
than the old manual system.
29
Document Page
Task 06
GNATT Chart
Figure 30
30
Document Page
References
Anon., n.d. GeeksForGeeks. [Online] Available at: https://www.geeksforgeeks.org/abstraction-in-java-2/.
Anon., n.d. Guru99. [Online] Available at: https://www.guru99.com/java-oops-class-objects.html
[Accessed 2019].
Anon., n.d. javapoint. [Online] Available at: https://www.javatpoint.com/inheritance-in-java [Accessed
2018].
Anon., n.d. Javatpoint. [Online] Available at: https://www.javatpoint.com/runtime-polymorphism-in-
java [Accessed 2018].
Anon., n.d. javatpoint. [Online] Available at: https://www.javatpoint.com/encapsulation [Accessed
2018].
Anon., n.d. Techopedia. [Online] Available at: https://www.techopedia.com/definition/3214/class-java
[Accessed 2016].
Anon., n.d. tutorialspoint. [Online] Available at:
https://www.tutorialspoint.com/software_engineering/software_testing_overview.htm [Accessed
2019].
31
chevron_up_icon
1 out of 31
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]