abstraction in oops python code example
Example 1: Abstraction example python
from abc import ABC,abstractclassmethod
class Parent(ABC):
@abstractclassmethod
def pqr(self):
pass
class Child(Parent):
def pqr(self):
print("PQR")
obj = Child()
obj.pqr()
Example 2: what is data abstraction
In computer science, Data abstraction is the process of hiding the physical and
temporal details from the outside world and providing information only as much
as they require....