What do I name classes whose only purpose is to act as a structure?
- by Sergio Tapia
For example, take my Actor class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace FreeIMDB
{
class Actor
{
public string Name { get; set; }
public Image Portrait { get; set; }
public DateTime DateOfBirth { get; set; }
public List<string> ActingRoles { get; set; }
public List<string> WritingRoles { get; set; }
public List<string> ProducingRoles { get; set; }
public List<string> DirectingRoles { get; set; }
}
}
This class will only be used to stuff information into it, and allow other developers to get their values.
What are these types of classes officially called? What is the correct nomenclature?