Hi Every Body
pls some one tell me if what i'm coding below is write or wrong , i wrote main class called "Family" inside the Family class i defined a structure called "Son" as follow
in the main Program file, i defied object of type Family and no problemCode:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace test2del { public class Family { string motherName; string fatherName; public string famName; Son[] FamilyColl = new Son[5]; public Family(string fn, string mn) { motherName = mn; fatherName = fn; } public struct Son { string SonName; String kind; float age; public Son(string sn, string sk, float sa) { SonName = sn; kind = sk; age = sa; } public string GetSonName { get { return SonName; } } } } }
also i want to define an object of type Sun and this is the problem how can i do it




Reply With Quote