User-1174608757 posted
Hi vinodkpasi
Essentially,Struct is a type of value, is not a type of reference.It is obvious that type Int can't inheritance a class.
Another point is that struct has fixed size, Assuming that struct could Inheritance struct, So we could write as below:
struct Point {public int X; public int Y; } // 8 bytes
struct Point3D : Point {public int X; } // 12 bytes
Point[] points = new Point[5];
//so we could write as
points[0] = new Point3D();
However ,It is obvious that we couldn't put the variable which is 12 bytes to another which is 8 bytes.
Best regards
Wei Zhang.