Demonstrate working of access modifiers in all classes using package on Java

Опубликовано: 27 Март 2026
на канале: Dost2Web
64
2

#Java #Eclipse #CommandLineArgument #ObjectOrientedConcept #VTU #CSE #VTUeLearning

Program : Create two packages P1 and P2. In package P1, create class A, class B inherited from A, class C . In
package P2, create class D inherited from class A in package P1 and class E. Demonstrate working of
access modifiers (private, public, protected, default) in all these classes using JAVA.