Hi all
I am trying to learn c#, at the moment i am stuck on an inheritance and set get example
here is my code
Main program
[code=c#]
static void Main()
{
squar sq = new squar();
sq.squareArea() ;
Console.WriteLi ne("The area of a square is " + Area);
Console.Read();
}
[/code]
and here is my parent and child class...
User Profile
Collapse
-
Inheritance - get/set in c#
Last edited by Plater; Jul 24 '08, 08:25 PM. Reason: code tags, cleanup. I think you have an extra } in there
No activity results to display
Show More