Dominion Energy Interview Question

Explain the distinction between abstraction and inheritance.

Interview Answer

Anonymous

Nov 16, 2022

Abstraction is an OOP concept that conceals implementation details from the user and only reveals the functionality. On the other hand, inheritance is the process of constructing a new class from the methods and properties of an existing one.