w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Accessing Protected Variable Of An Instance Of A Class That Extends An Abstract Base Class?

The protected keyword makes things visible within the same package. Which is the case, because both of your classes are in package mypackage.

Here is a nice table, taken from Oracle.com:

enter image
description here





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.