71.
What does Liskov substitution principle specify?

72.
What will be the correct option of the following Java code snippet?
interface ICust 
{
}
class RegularCustomer implements ICust 
{
}
class OneTimeCustomer implements ICust 
{
}

73.
What will be the output of the following Java code snippet?
public class Shape 
{
	public int area()
        {
		return 1;
	}
}
public class Square extends Shape 
{
	public int area()
        {
		return 2;
	}
}
class Main() 
{
   public static void main(String[] args)
   {
	Shape shape = new Shape();
	Square square = new Square();
	shape = square;
	System.out.println(shape.area());
    }
}

74.
What will be the output of the following Java code snippet?
public class Shape 
{
	public int area()
        {
		return 1;
	}
}
public class Rectangle extends Shape 
{
	public int area()
        {
		return 3;
	}
}
class Main() 
{
   public static void main(String[] args)
   {
	Shape shape = new Shape();
	Rectangle rect = new Rectangle();
	shape = rect;
	System.out.println(shape.area());
   }
}

75.
What will be the output of the following Java code?
public class Shape 
{
	public int area()
        {
		return 1;
	}
}
public class Square extends Shape 
{
	public int area()
        {
		return 2;
	}
}
class Main() 
{
   public static void main(String[] args)
   {
	Shape shape = new Shape();
	Square square = new Square();
	square = shape;
	System.out.println(square.area());
   }
}

76.
What will be the output of the following Java code?
public class Shape 
{
	public int area()
        {
		return 1;
	}
}
public class Square extends Shape 
{
	public int area()
        {
		return 2;
	}
}
public class Rectangle extends Shape 
{
	public int area()
        {
		return 3;
	}
}
class Main() 
{
   public static void main(String[] args)
   {
	Shape shape = new Shape();
	Square square = new Square();
    	Rectangle rect = new Rectangle();
	rect = (Rectangle)shape;
	System.out.println(square.area());
   }
}

77.
What will be the output of the following Java code?
public class Shape 
{
	public int area()
        {
		return 1;
	}
}
public class Square extends Shape 
{
	public int area()
        {
		return 2;
	}
}
public class Rectangle extends Shape 
{
	public int area()
        {
		return 3;
	}
}
class Main() 
{
      public static void main(String[] args)
      {
	 Shape shape = new Shape();
	 Square square = new Square();
   	 Rectangle rect = new Rectangle();
	 rect = (Rectangle)square;
	 System.out.println(square.area());
      }
}

78.
What will be the output of the following Java code?
public class Shape 
{
	public int area()
        {
		return 1;
	}
}
public class Square extends Shape 
{
	public int area()
        {
		return 2;
	}
}
public class Rectangle extends Shape 
{
	public int area()
        {
		return 3;
	}
}
class Main() 
{
       public static void main(String[] args)
       {
	 Shape shape = new Shape();
	 Square square = new Square();
   	 Rectangle rect = new Rectangle();
	 rect = (Rectangle)square;
	 System.out.println(square.area());
	}
}

79.
What will be the output of the following Java code?
public class Shape 
{
	public int area()
        {
		return 1;
	}
}
public class Square extends Shape 
{
	public int area()
        {
		return 2;
	}
}
public class Rectangle extends Shape 
{
	public int area()
        {
		return 3;
	}
}
public static void main(String[] args)
{
	 Shape shape = new Square();
   	 shape = new Rectangle();
	 System.out.println(shape.area());
}

80.
What will be the output of the following Java code?
public class Shape 
{
	public int area()
        {
		return 1;
	}
}
public class Square extends Shape 
{
	public int area()
        {
		return 2;
	}
}
public class Rectangle extends Shape 
{
	public int area()
        {
		return 3;
	}
}
public static void main(String[] args)
{
	 Shape square = new Square();
   	 Shape rect = new Rectangle();
     	 square = rect;
	 System.out.println(square.area());
}