Hi I'm creating a code for my class and what I'm trying to do is to create a triangle class that is derived from abstract class TwoDimShape. However; when I create the triangle class and use base as a variable I get an error. My teacher wants us to use the variable "base" here is my code and the error, any help is appreciated.
sing System;
public class Triangle : TwoDimShape
{
private double base;
private double height;
}
and the error is: Error 1 Invalid token 'base' in class, struct, or interface member declaration