Professional Documents
Culture Documents
Object Oriented Programing My Oop Ass Auto Mated
Object Oriented Programing My Oop Ass Auto Mated
Special thanks to Mr. Sachithra Deepanatha, Centre Manager at Esoft Metro Campus Negombo.
My gratitude further extends Miss Malsha Sethunga for leading me towards the completion of the
assignment and for devoting the priceless hours in coordinating, guiding and inspiring me
throughout the assignment. Their guidance and advices also helped me in completing my
assignment successfully. And also I would like to thank my parents for giving me all the
opportunities to complete my assignment. They helped me in many ways that I have no words to
explain it. Finally I would like thank all my friends who helped me in finalizing this assignment
within the limited frame.
1
Mohamed Zeid 10062 OOP
Table of content:
Contents
Acknowledgement .......................................................................................................................... 1
2. Identify the objects and data and file structures required to implement a given design. (LO
2.1) 9
3. Draw the Use Case Diagram, Class Diagram and Sequence Diagrams, ERD for the given
scenario. Use Case diagram should be supported with the Use Case narrations. (LO 2.2)(M 2.7)
11
4. Implement the Object Oriented solution using C#.Net for the proposed Design using a
suitable IDE. (LO 3.1). Include onscreen help to assist the users of SU.(M 3.1) ......................... 11
5. Provide evidences of Implementation of object behaviors using control structures to meet the
design algorithm (LO 3.3)............................................................................................................. 18
7. Prepare a test plan and test your solution according to the plan. The proposed plan should
cover all important functionality of the system. (LO 4.1) ............................................................ 20
8. Analyze actual test results against expected results and to overcome the discrepancies
occurred......................................................................................................................................... 21
2
Mohamed Zeid 10062 OOP
9. Get independent feedback on your solution (use surveys, questioners, interviews or any other
feedback collecting method) and make recommendations and suggestions for improvements in a
separate conclusion/recommendations section. (LO4.3) (D1.4) ................................................... 23
10. Prepare onscreen help, a users’ guide and a technical documentation for the support and
maintenance of the software. (LO 4.4) (LO 4.5) .......................................................................... 28
3
Mohamed Zeid 10062 OOP
MAIN TASK:
Object Oriented Programming (OOP) is a programming model where programs are organized
around objects and data rather than action and logic. OOP allows decomposition of a problem into
a number of entities called objects and then builds data and functions around these objects.
1. The software is divided into a number of small units called objects. The data and functions are
built around these objects.
2. The data of the objects can be accessed only by the functions associated with that object.
3. The functions of one object can access the functions of another object.
4
Mohamed Zeid 10062 OOP
• Software is easily developed for complex • Increased burden on part of OOP
problems. developer.
• Modularity is achieved.
• Data abstraction is possible.
5
Mohamed Zeid 10062 OOP
functions in a single unit (class) is
encapsulation. Data cannot be accessible to the
outside world and only those functions which
are stored in the class can access it.
Reusability
Polymorphism Polymorphism means the ability to take more
than one form. An operation may exhibit
different behaviors in different instances. The
behavior depends on the data types used in the
operation. Polymorphism is extensively used
in implementing Inheritance the biggest
advantage of polymorphism is creation of
reusable code by programmers, classes once
written, tested and implemented can be easily
reused without caring about what’s written in
the cases.
Dynamic binding
6
Mohamed Zeid 10062 OOP
1.3 Principals of Object Oriented Programming
Encapsulation
Polymorphism
Inheritance
Abstraction
Encapsulation
we have to take in consideration that Encapsulation is somehow related to Data Hiding.
Encapsulation is when you hide your modules internal data and all other implementation
details/mechanism from other modules. It is also a way of restricting access to certain properties
or component.
Remember, Encapsulation is not data hiding, but Encapsulation leads to data hiding
Inheritance
Like the word Inheritance literally means it is a practice of passing on property, titles, debts, rights
and obligations upon the death of an individual. in OOP this is somehow true (Except the death of
an individual), where The base class (the existing class sometimes called as the Parent class) has
properties and methods that will be inherited by the sub class (sometimes called a subtype or child
class) and it can have additional properties or methods.
Polymorphism
Just like in biology, Polymorphism refers to the ability to take into different forms or stages. A
subclass can define its own unique behavior and still share the same functionalities or behavior of
its parent/base class. Yes, you got it right, subclass can have their own behavior and share some
of its behavior from its parent class not the other way around. A parent class cannot have the
behavior of its subclass.
7
Mohamed Zeid 10062 OOP
Abstraction
Abstraction is a process of exposing essential feature of an entity while hiding other irrelevant
detail. Why would you want to use abstraction?
Abstraction reduces code complexity and at the same time, it makes your aesthetically pleasant.
Inheritance in my system…
8
Mohamed Zeid 10062 OOP
2. Identify the objects and data and file structures required to implement a
given design. (LO 2.1)
9
Mohamed Zeid 10062 OOP
SqlCommand tn =txt_tn.text;
Admin
10
Mohamed Zeid 10062 OOP
3. Draw the Use Case Diagram, Class Diagram and Sequence Diagrams, ERD
for the given scenario. Use Case diagram should be supported with the
Use Case narrations. (LO 2.2)(M 2.7)
ERD diagram
3.2 relationship
4. Implement the Object Oriented solution using C#.Net for the proposed
Design using a suitable IDE. (LO 3.1). Include onscreen help to assist the
users of SU.(M 3.1)
Login form
Main menu
11
Mohamed Zeid 10062 OOP
Admin menu
Student form
12
Mohamed Zeid 10062 OOP
Professor form
Course form
Register form
13
Mohamed Zeid 10062 OOP
Batch form
Request form
14
Mohamed Zeid 10062 OOP
Payment form
Professor menu
15
Mohamed Zeid 10062 OOP
Student menu
16
Mohamed Zeid 10062 OOP
Add function witch u use
Tool tip
17
Mohamed Zeid 10062 OOP
5. Provide evidences of Implementation of object behaviors using control
structures to meet the design algorithm (LO 3.3)
Control structures
18
Mohamed Zeid 10062 OOP
6. Evaluate effective use of an Integrated Development Environment (IDE),
Include important code snippets (such as of system-specific algorithms) and
screenshots of important user interfaces (LO 3.4)
19
Mohamed Zeid 10062 OOP
7. Prepare a test plan and test your solution according to the plan. The
proposed plan should cover all important functionality of the system. (LO
4.1)
20
Mohamed Zeid 10062 OOP
8. Analyze actual test results against expected results and to overcome the
discrepancies occurred.
3 Display Pass
error
message
21
Mohamed Zeid 10062 OOP
10
22
Mohamed Zeid 10062 OOP
9. Get independent feedback on your solution (use surveys, questioners,
interviews or any other feedback collecting method) and make
recommendations and suggestions for improvements in a separate
conclusion/recommendations section. (LO4.3) (D1.4)
Comments:
……………………………………………………………………………………………………
……………………………………………………………………………………………………
………………………………………………………………………………………………….
…………………………… …………………………
23
Mohamed Zeid 10062 OOP
Signature date
Comments:
……………………………………………………………………………………………………
……………………………………………………………………………………………………
………………………………………………………………………………………………….
…………………………… …………………………
Signature date
24
Mohamed Zeid 10062 OOP
Feedback gathering form:
Comments:
……………………………………………………………………………………………………
……………………………………………………………………………………………………
………………………………………………………………………………………………….
…………………………… …………………………
Signature date
25
Mohamed Zeid 10062 OOP
Interview person: ………………………………………………………….………………….….
Interviewer: ………………………………………………………………….……………….….
Data: ……………………………………………………………………………………………..
Location: …………………………………………………………………………...……………
Time: ………………………………………………………………………….………….……..
Comments:
……………………………………………………………………………………………………
……………………………………………………………………………………………………
………………………………………………………………………………………………….
…………………………… …………………………
Signature date
26
Mohamed Zeid 10062 OOP
Interview person: ………………………………………………………….………………….….
Interviewer: ………………………………………………………………….……………….….
Data: ……………………………………………………………………………………………..
Location: …………………………………………………………………………...……………
Time: ………………………………………………………………………….………….……..
Comments:
……………………………………………………………………………………………………
……………………………………………………………………………………………………
………………………………………………………………………………………………….
…………………………… …………………………
Signature date
27
Mohamed Zeid 10062 OOP
10.Prepare onscreen help, a users’ guide and a technical documentation for the
support and maintenance of the software. (LO 4.4) (LO 4.5)
28
Mohamed Zeid 10062 OOP
Bibliography
29
Mohamed Zeid 10062 OOP