using System;
//parent class
class Shape
{
//change the ACCESS MODIFIER to protected
protected int height;
protected int width;
//constructor---->method to input the values
public void input(int x, int y)
height = x;
width = y;
}
//child class
class Rectangle : Shape
//method
public void printInfo()
Console.WriteLine(height);
Console.WriteLine(width);
Console.WriteLine(height*width);
public class Program
public static void Main()
Rectangle rec1 = new Rectangle();
rec1.input(2,3);//from the parent class
rec1.printInfo();//from the child class