What do I name classes whose only purpose is to act as a structure?
Posted
by Sergio Tapia
on Stack Overflow
See other posts from Stack Overflow
or by Sergio Tapia
Published on 2010-06-13T19:36:01Z
Indexed on
2010/06/13
19:42 UTC
Read the original article
Hit count: 240
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?
© Stack Overflow or respective owner