CS
This commit is contained in:
34
CS/CS1 PoloClubApp_RensPastoor/SmartPhone.cs
Normal file
34
CS/CS1 PoloClubApp_RensPastoor/SmartPhone.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
///
|
||||
/// class: SmartPhone.cs
|
||||
///
|
||||
///This file defines the SmartPhone class, which represents a smartphone device. It includes properties and methods
|
||||
///specific to smartphones, such as getting device details and managing assignments to players.
|
||||
///
|
||||
/// Name: Rens Pastoor
|
||||
/// Studentnumber: 555408
|
||||
/// Date: 11 May 2025
|
||||
///
|
||||
///Version: 1
|
||||
///
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PoloClubApp {
|
||||
internal class SmartPhone : Device {
|
||||
public string DeviceType = "SmartPhone";
|
||||
public int Id { get; }
|
||||
public string Name { get; }
|
||||
public string PlayerName { get; set; }
|
||||
|
||||
public SmartPhone(int id, string name) : base(id, name, null){
|
||||
Id = id;
|
||||
Name = name;
|
||||
}
|
||||
public override string GetDetails(){
|
||||
return DeviceType + "Id: " + Id + ", Name: " + Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user