Task-6:Write a program in java to implement abstraction, the program should...
Task-6:Write a program in java to implement abstraction, the program should have two classes "Person" and "Employee" but it should not expose the details of "Person" class by using Abstraction. Solution: I created person as an abstract class which contain person attributes and abstract method to show details that class is extended by employee class which have attributes of person class as well its own too and it also override the abstract show details method.