C# Classes Syntax Steps
C# Classes Syntax Steps
{
static void Main(string[] args)
{
// STEP 8 : Create an OBJECT of the Bird class (in this case using dot notation)
Bird falcon = new Bird();
// ANOTHER CLASS OBJECT I commented for example purposes using object initializer
// Reptile turtle = new Reptile() { numSpecies = 356, reproduction = "eggs",
//isDangerous = false, canRegenerate = false};
// STEP 10 : in this case it is printing the info. Here we create an array and a
// foreach loop to be able to iterate to each member, property of the two classes
// the bird class and the reptile class (this one is commented).
// STEP 3 : Give this class MEMBERS (in this case, members that all Animals have in common)
public bool canSwing { get; set; } // these are properties because get & set keywords
public string groupOrClass {get; set; } // these are properties
public bool canFly { get; set; } // these are properties
public string fertilization { get; set; } // these are properties
}