Object-Oriented Programming Principles and Implementation Report
VerifiedAdded on 2025/05/04
|24
|3601
|291
AI Summary
Desklib offers solved assignments and past papers to help students succeed.

Contents
Introduction......................................................................................................................................2
LO1..................................................................................................................................................3
1.1.................................................................................................................................................3
LO2..................................................................................................................................................6
2.1.................................................................................................................................................6
2.2.................................................................................................................................................7
LO3..................................................................................................................................................8
3.1.................................................................................................................................................8
3.2...............................................................................................................................................11
3.3...............................................................................................................................................16
3.4...............................................................................................................................................17
LO4................................................................................................................................................18
4.1...............................................................................................................................................18
4.2...............................................................................................................................................19
4.3...............................................................................................................................................19
4.4...............................................................................................................................................20
4.5...............................................................................................................................................20
Conclusion.....................................................................................................................................21
References......................................................................................................................................22
Figure 1: OOP principles.................................................................................................................4
Figure 2: OOP concepts...................................................................................................................6
Figure 3: Unified Modeling Language............................................................................................8
Figure 4: Screenshot 1.....................................................................................................................9
Figure 5: Screenshot 2...................................................................................................................10
Figure 6: Screenshot 3...................................................................................................................10
Figure 7: Screenshot 4...................................................................................................................11
Figure 8: Screenshot 5...................................................................................................................11
Figure 9: Screenshot 6...................................................................................................................12
Figure 10: Relationships................................................................................................................13
Figure 11: Inheritance....................................................................................................................14
Introduction......................................................................................................................................2
LO1..................................................................................................................................................3
1.1.................................................................................................................................................3
LO2..................................................................................................................................................6
2.1.................................................................................................................................................6
2.2.................................................................................................................................................7
LO3..................................................................................................................................................8
3.1.................................................................................................................................................8
3.2...............................................................................................................................................11
3.3...............................................................................................................................................16
3.4...............................................................................................................................................17
LO4................................................................................................................................................18
4.1...............................................................................................................................................18
4.2...............................................................................................................................................19
4.3...............................................................................................................................................19
4.4...............................................................................................................................................20
4.5...............................................................................................................................................20
Conclusion.....................................................................................................................................21
References......................................................................................................................................22
Figure 1: OOP principles.................................................................................................................4
Figure 2: OOP concepts...................................................................................................................6
Figure 3: Unified Modeling Language............................................................................................8
Figure 4: Screenshot 1.....................................................................................................................9
Figure 5: Screenshot 2...................................................................................................................10
Figure 6: Screenshot 3...................................................................................................................10
Figure 7: Screenshot 4...................................................................................................................11
Figure 8: Screenshot 5...................................................................................................................11
Figure 9: Screenshot 6...................................................................................................................12
Figure 10: Relationships................................................................................................................13
Figure 11: Inheritance....................................................................................................................14
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Figure 12: Composition.................................................................................................................14
Figure 13: Association...................................................................................................................15
Figure 14: Aggregation..................................................................................................................15
Figure 15: Overall Hierarchy of the relationships in the OOP......................................................16
Figure 16: Use Case diagram.........................................................................................................17
Figure 17: Output...........................................................................................................................18
Figure 18: Output (1).....................................................................................................................19
Figure 13: Association...................................................................................................................15
Figure 14: Aggregation..................................................................................................................15
Figure 15: Overall Hierarchy of the relationships in the OOP......................................................16
Figure 16: Use Case diagram.........................................................................................................17
Figure 17: Output...........................................................................................................................18
Figure 18: Output (1).....................................................................................................................19

Introduction
The report consists of a detailed discussion related to Object Oriented programming so that the
understanding of this topic can get better. There are four different parts that are included in this
report that discuss the principle of the Object-oriented programming, designing of the object-
oriented solutions, Implementations of the solution of the Object-oriented programming and
testing as well as the documentation of the Object-oriented programming. After the successful
completion of all the part and overall assignment, a proper understanding of the Object-oriented
programming can be gain.
The report consists of a detailed discussion related to Object Oriented programming so that the
understanding of this topic can get better. There are four different parts that are included in this
report that discuss the principle of the Object-oriented programming, designing of the object-
oriented solutions, Implementations of the solution of the Object-oriented programming and
testing as well as the documentation of the Object-oriented programming. After the successful
completion of all the part and overall assignment, a proper understanding of the Object-oriented
programming can be gain.
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

LO1
1.1
Object-oriented programming uses objects in the programming languages. These objects are the
instances of the class and these objects are defined by the data types that are user-defined, these
objects are the run-time entities and used in this programming. This programming implements
the entities of the real world like the inheritance, polymorphism and many others. The goal of the
object-oriented programming is to gather the data together and make the functions operate on
them so that another part of the code cannot access the data, only the function can.
In this part of the assessment, the detail explanation on the principle, characteristics, and features
of the object-oriented programming is provided. So after understanding the meaning of the OOP,
let’s discuss the principles of the OOP.
Figure 1: OOP principles
(Source: (Cdn.wagmob.com, 2019))
Principles of OOP:
There are in total of twelve principles that this programming language consists of. They are listed
below:
1.1
Object-oriented programming uses objects in the programming languages. These objects are the
instances of the class and these objects are defined by the data types that are user-defined, these
objects are the run-time entities and used in this programming. This programming implements
the entities of the real world like the inheritance, polymorphism and many others. The goal of the
object-oriented programming is to gather the data together and make the functions operate on
them so that another part of the code cannot access the data, only the function can.
In this part of the assessment, the detail explanation on the principle, characteristics, and features
of the object-oriented programming is provided. So after understanding the meaning of the OOP,
let’s discuss the principles of the OOP.
Figure 1: OOP principles
(Source: (Cdn.wagmob.com, 2019))
Principles of OOP:
There are in total of twelve principles that this programming language consists of. They are listed
below:
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Encapsulation of data
Abstraction of data
Polymorphism
Inheritance
Concurrency of Object
Generality
Persistency
Extensibility
Delegation
Multiple Inheritance
Passing messages
Handling of events
Among all of the listed principles and concept, there are four fundamental principles that are
mostly used and are very essential. So they are discussed and explained in detail below:
Inheritance: The Inheritance principle helps in understanding the concept of how the
hierarchy of the class helps in developing the readability of the code and supports the
functionality of reusing the code.
In this principle, the new data type that is the classes is defined with the help of
extensions to the data types that were defined previously. In this, the parent class is
known as the superclass, child class that is known as subclass are the classes through
which the inheritance takes place and helps in inheriting the properties of the parent class
into the child class.
Polymorphism: The principle of polymorphism helps in providing the explanation of
working with various objects in a similar manner that also helps in understanding the
implementation of the abstract behavior.
The polymorphic word refers to the many forms in the Greek, the word poly means many
and the word morphs are many forms. In the object orient programming, the
polymorphism refers to the many forms. This principle helps in allowing the objects to
get processed differently by the types of data that are used or the classes of the program.
To be more accurate, this principle has the capability to provide responses for various
Abstraction of data
Polymorphism
Inheritance
Concurrency of Object
Generality
Persistency
Extensibility
Delegation
Multiple Inheritance
Passing messages
Handling of events
Among all of the listed principles and concept, there are four fundamental principles that are
mostly used and are very essential. So they are discussed and explained in detail below:
Inheritance: The Inheritance principle helps in understanding the concept of how the
hierarchy of the class helps in developing the readability of the code and supports the
functionality of reusing the code.
In this principle, the new data type that is the classes is defined with the help of
extensions to the data types that were defined previously. In this, the parent class is
known as the superclass, child class that is known as subclass are the classes through
which the inheritance takes place and helps in inheriting the properties of the parent class
into the child class.
Polymorphism: The principle of polymorphism helps in providing the explanation of
working with various objects in a similar manner that also helps in understanding the
implementation of the abstract behavior.
The polymorphic word refers to the many forms in the Greek, the word poly means many
and the word morphs are many forms. In the object orient programming, the
polymorphism refers to the many forms. This principle helps in allowing the objects to
get processed differently by the types of data that are used or the classes of the program.
To be more accurate, this principle has the capability to provide responses for various

objects in the same message but in diverse ways (Jackson, 2016). This rule helps in
allowing the one name or the operator to get associated with many operations that depend
on the data type that is passed and provide the ability to read the method in the class that
is derived.
Encapsulation: This is the principle that is used for hiding the details that are
unnecessary and helps in providing a clear and concise interface. Also, this is used for
combining the code and data that is manipulated in one single unit this is known as the
encapsulation process. This principle helps in providing a security layer to the data that is
manipulated and helps it from misuse of the data by external sources. This principle is
supported by the classes as well as the objects in the Java programming.
Data Abstraction: This is the principle that helps in extracting out the important details
and information of the objects. All the extra background details get to hide in this
principle of the OOP.
Figure 2: OOP concepts
allowing the one name or the operator to get associated with many operations that depend
on the data type that is passed and provide the ability to read the method in the class that
is derived.
Encapsulation: This is the principle that is used for hiding the details that are
unnecessary and helps in providing a clear and concise interface. Also, this is used for
combining the code and data that is manipulated in one single unit this is known as the
encapsulation process. This principle helps in providing a security layer to the data that is
manipulated and helps it from misuse of the data by external sources. This principle is
supported by the classes as well as the objects in the Java programming.
Data Abstraction: This is the principle that helps in extracting out the important details
and information of the objects. All the extra background details get to hide in this
principle of the OOP.
Figure 2: OOP concepts
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

(Source: (Twinb0rnsoft.com, 2019))
Features of the OOP:
There are various features of the OOP that are discussed in this part of the report:
The development of the program is designed.
Emphasis on the data than on the algorithms.
The procedural abstraction can be perfected by the data abstraction.
The data and the process that are associated are unified and the grouping of the object
along with the attributes that are common, operations as well as the semantics that are
common (Sethna, 2015).
LO2
2.1
The problem that is based on the web forum is provided in this particular assignment. The
problem is provided with the solution that can take the user registration and the code is
developed by using the platform of Net Beans. The solution keeps store the data of the user and
allow them to get register in the web forum. The uses of different objects are used in order to
create the code on the java these are used so as to store the details of the user that is getting
register in the web forum. An object named “ob” is given that will store the details of the users
(Torre et al., 2018).
Objects are the instances of the class that are also the combination of the data as well as the
procedure that works on the data that is available. The object has the state as well as the
behavior. The state of the object gets stored in the form of variables and the functions that are the
methods help in representing the behavior of the object. The objects get created from the
template that is known as the classes.
File structure:
Two different file structures are used in these particular programs that are the client and the
server.
Features of the OOP:
There are various features of the OOP that are discussed in this part of the report:
The development of the program is designed.
Emphasis on the data than on the algorithms.
The procedural abstraction can be perfected by the data abstraction.
The data and the process that are associated are unified and the grouping of the object
along with the attributes that are common, operations as well as the semantics that are
common (Sethna, 2015).
LO2
2.1
The problem that is based on the web forum is provided in this particular assignment. The
problem is provided with the solution that can take the user registration and the code is
developed by using the platform of Net Beans. The solution keeps store the data of the user and
allow them to get register in the web forum. The uses of different objects are used in order to
create the code on the java these are used so as to store the details of the user that is getting
register in the web forum. An object named “ob” is given that will store the details of the users
(Torre et al., 2018).
Objects are the instances of the class that are also the combination of the data as well as the
procedure that works on the data that is available. The object has the state as well as the
behavior. The state of the object gets stored in the form of variables and the functions that are the
methods help in representing the behavior of the object. The objects get created from the
template that is known as the classes.
File structure:
Two different file structures are used in these particular programs that are the client and the
server.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Client: The user will act as the client in this code so that he can get register in the web forum.
Server: Java IDE is the server that is used and that will help in storing the details of the clients
that are the users.
2.2
Unified Modeling Language that is the UML diagram is created that helps in describing the
objects that are used in the system that is created, a relationship that exists between them and
helps in providing the overview of the whole system (Yang, et al., 2015). The UML diagram of
the user registration of the web forum is created by using draw.io and shown here that consist of
two different classes and the relationship is shown here along with the attributes as well as the
data type of these attributes:
Figure 3: Unified Modeling Language
Server: Java IDE is the server that is used and that will help in storing the details of the clients
that are the users.
2.2
Unified Modeling Language that is the UML diagram is created that helps in describing the
objects that are used in the system that is created, a relationship that exists between them and
helps in providing the overview of the whole system (Yang, et al., 2015). The UML diagram of
the user registration of the web forum is created by using draw.io and shown here that consist of
two different classes and the relationship is shown here along with the attributes as well as the
data type of these attributes:
Figure 3: Unified Modeling Language

LO3
3.1
The solution of the given scenario that asks for the development of the web forum user
registration that asks the details like userID, first name, Last name, date of birth, mobile number,
mail address and address of the user before the registration so that all the details can be stored
properly. Uses of different classes as well as objects have been done so that the information can
be stored properly and efficiently. The program written by using the net beans and the screenshot
as well as the output of the developed code is shown with the help of screenshots (Kristensen,
2019). Uses of two different classes are also mentioned and the names of the two classes are
Part2 and storedetails. These classes use different functions and methods that are discussed
above and shown in the diagrams also. Here are some screenshots of the code that is used in the
program (Singh and Sharma, 2015).
Class storedetails:
Figure 4: Screenshot 1
3.1
The solution of the given scenario that asks for the development of the web forum user
registration that asks the details like userID, first name, Last name, date of birth, mobile number,
mail address and address of the user before the registration so that all the details can be stored
properly. Uses of different classes as well as objects have been done so that the information can
be stored properly and efficiently. The program written by using the net beans and the screenshot
as well as the output of the developed code is shown with the help of screenshots (Kristensen,
2019). Uses of two different classes are also mentioned and the names of the two classes are
Part2 and storedetails. These classes use different functions and methods that are discussed
above and shown in the diagrams also. Here are some screenshots of the code that is used in the
program (Singh and Sharma, 2015).
Class storedetails:
Figure 4: Screenshot 1
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

Figure 5: Screenshot 2
Figure 6: Screenshot 3
Figure 6: Screenshot 3
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Figure 7: Screenshot 4
Class Part2
Figure 8: Screenshot 5
Class Part2
Figure 8: Screenshot 5

Figure 9: Screenshot 6
3.2
There are various relationships that exist between the objects for the implementation of the
requirement of design (Hoffman, 2016). There are various relationships that are present in the
OOP and they are listed as:
Inheritance.
Association.
Composition.
Aggregation.
Realization.
Directed Association.
Multiplicity.
Reflexive Association.
3.2
There are various relationships that exist between the objects for the implementation of the
requirement of design (Hoffman, 2016). There are various relationships that are present in the
OOP and they are listed as:
Inheritance.
Association.
Composition.
Aggregation.
Realization.
Directed Association.
Multiplicity.
Reflexive Association.
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide
1 out of 24
Related Documents

Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
Copyright © 2020–2025 A2Z Services. All Rights Reserved. Developed and managed by ZUCOL.