Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This in being done in C# 1. Create a Visual Studio project using the following c

ID: 3875209 • Letter: T

Question

This in being done in C#

1. Create a Visual Studio project using the following class diagram. All classes and interfaces should be in their own file. Pets Abstract Class Person Abstract Class Methods Animoltype Fields e dateOfBirth · _petName Fields dateOfBirth firstName NumberLegs Properties BSUFaculty Class + Person DateOfBirth PetName BSUStudent Class Person E Methods & DateofBirth FirstName Petinfo 3 Fields Fieids studentiD facultylD salary Methods AnimalType BloodType o BreathingType Animal Animal Dogs Class 4 Pets Fish Class DateOfBirth & DateOfBirth FirstName Pets GetFullName Methods Methods O BSUFaculty Methods Methods Personnt BSUStudent AnimalType BloodType BreathingType Number egs Petinfo o AnimalType BloodType BreathingType @ Personinfo Personinfo Petinfo 2. The following is additional information concerning the classes. All italicized classes, fields, properties and methods are abstract. . IAnimal interface details. Type Name | Methods D AnimalType D BloodType string string D BreathingType string string D Numberlegs

Explanation / Answer

IAnimal.cs

namespace CheggExample
{
interface IAnimal
{
string AnimalType();
string BloodType();
string BreathingType();
string NumberLegs();
}
}

Person.cs

namespace CheggExample
{
abstract class Person : IAnimal
{
protected string _dateOfBirth;
protected string _firstName;
protected string _lastName;

abstract public string DateOfBirth
{
get; set;
}

abstract public string FirstName
{
get;set;
}

abstract public string LastName
{
get;set;
}

public string AnimalType()
{
return "";
}
public string BloodType()
{
return "";
}
public string BreathingType()
{
return "";
}
abstract public string EmploymentStatus();
public string GetFullName()
{
return "";
}
public string NumberLegs()
{
return "";
}
abstract public string PersonInfo();
}
}

BSUStudent.cs

namespace CheggExample
{
class BSUStudent : Person
{
private string studentID;
private string tuitionDue;

public override string DateOfBirth
{
get
{
return _dateOfBirth;
}  
set
{
_dateOfBirth = value;
}
  
}
public override string FirstName
{
get{
return _firstName;
}
set{
_firstName = value;
}
}
public override string LastName
{
get{
return _lastName;
}
set{
_lastName = value;
}
}
public BSUStudent()
{

}
public override string EmploymentStatus()
{
return "";
}
public override string PersonInfo()
{
return "";
}
}
  
}

BSUFaculty.cs

namespace CheggExample
{
class BSUFaculty : Person
{
private string facultyID;
private string salary;

public override string DateOfBirth
{
get{
return _dateOfBirth;
}
set
{
_dateOfBirth = value;
}
}
public override string FirstName
{
get{
return _firstName;
}
set{
_firstName = value;
}
}
public override string LastName
{
get{
return _lastName;
}
set{
_lastName = value;
}
}
public BSUFaculty()
{

}
public override string EmploymentStatus()
{
return "";
}
public override string PersonInfo()
{
return "";
}
}

}

Pets.cs

namespace CheggExample
{
abstract class Pets
{
protected string _dateOfBirth;
protected string _petName;

public string DateOfBirth{
get;set;
}
public string PetName
{
get;set;
}
abstract public string PetInfo();

}
}

Dogs.cs

namespace CheggExample
{
class Dogs : Pets, IAnimal
{
public string AnimalType()
{
return "";
}
public string BloodType()
{
return "";
}
public string BreathingType()
{
return "";
}
public string NumberLegs()
{
return "";
}
public override string PetInfo()
{
return "";
}
}
}

Fish.cs

namespace CheggExample
{
class Fish : Pets, IAnimal
{
public string AnimalType()
{
return "";
}
public string BloodType()
{
return "";
}
public string BreathingType()
{
return "";
}
public string NumberLegs()
{
return "";
}
public override string PetInfo()
{
return "";
}
}
}

Note that unspecified return types and fields were assumed to be strings.

Add the code to seperate files in an empty project in Visual Studio to create the required project. Let me know if you need any more help.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote