Using C# programming language (using Microsoft Visual Studio), create a class called Person that has some properties (e.g., name, surname, age etc.). Create a method called Greeting which prints “Person is saying Hi!”. Now, create two classes to hold data from user input. The console needs to be used to retrieve the data by asking the user to create the object. • Create a console application • Create a class and name it Student • Student class should be derived from the Person class • Create the following properties for your class: name, surname, email, ID, phone number, date of birth etc. • Create a parameter and constructor for your class • Use the Greeting method by overriding the base class method; your method should print “Student is saying Hi!” • Create another class for validation • Create at least three methods for your validation class to validate empty entry, wrong phone number and email address The user needs to enter the information as an input to create a student, then the entered information needs to be validated and finally the student object should be created based on the information entered by the user. Your program needs to display the student details in the console.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Using C# programming language (using Microsoft Visual Studio), create a class called Person
that has some properties (e.g., name, surname, age etc.). Create a method called Greeting
which prints “Person is saying Hi!”. Now, create two classes to hold data from user input. The
console needs to be used to retrieve the data by asking the user to create the object.
• Create a console application
• Create a class and name it Student
• Student class should be derived from the Person class
• Create the following properties for your class: name, surname, email, ID, phone
number, date of birth etc.
• Create a parameter and constructor for your class
• Use the Greeting method by overriding the base class method; your method should
print “Student is saying Hi!”
• Create another class for validation
• Create at least three methods for your validation class to validate empty entry,
wrong phone number and email address
The user needs to enter the information as an input to create a student, then the entered
information needs to be validated and finally the student object should be created based on
the information entered by the user. Your program needs to display the student details in the
console.

Enter Student name:
Bob
Enter Student surname:
Smith
Enter E-mail address:
bob.smith@roehampton.ac.uk
Enter Student ID:
12345678
Enter Student phone number:
07123456789
D.O.B: 01/01/2000
Student Information:
Title: Mr.
Name: Bob
Surname: Smith
Age: 21
Email: Bob@Roehampton.ac.uk
ID: 12345678
Phone: 07123456789
Note: you MUST use the fundamental concepts of OOP in your solution where it is applicable
(e.g., inheritance, polymorphism, encapsulation etc.)
Transcribed Image Text:Enter Student name: Bob Enter Student surname: Smith Enter E-mail address: bob.smith@roehampton.ac.uk Enter Student ID: 12345678 Enter Student phone number: 07123456789 D.O.B: 01/01/2000 Student Information: Title: Mr. Name: Bob Surname: Smith Age: 21 Email: Bob@Roehampton.ac.uk ID: 12345678 Phone: 07123456789 Note: you MUST use the fundamental concepts of OOP in your solution where it is applicable (e.g., inheritance, polymorphism, encapsulation etc.)
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY