Northrop Grumman Interview Question

How to inherit variables from one class to another?

Interview Answer

Anonymous

Aug 8, 2025

First, initialize a class object of the parent class, which is known as instantiation. Then, call variables from that class object using encapsulation.