Create a java class and implement a proper encapsulation.

abstract class EncaTest
{
 public void disp()
   {
     System.out.println("i m pop3");
   }
 }
class Tester extends EncaTest
 {
  public void display()
   {
     System.out.println("hello m display");
   }
  public static void main(String args[])
   {
     Tester ab=new Tester();
     ab.disp();
     ab.display();

   }
 }

1 comment: