You are on page 1of 1

WORD PROBLEM (OOPS ASSIGNMENT)

Q1: Declaration of type/value parameter in the base class. Check for the visibility of this
parameter in the outer class and the nested class by using in declaration of other parameter.

SOL: https://www.edaplayground.com/x/3BZw

Q3: Declaration of data type or another class handle in the base class. Check for the visibility
of this type by declaring a variable in both the outer class and nested class.

SOL: https://www.edaplayground.com/x/2pLQ

Q5: Declaring task and function in the base class. Calling these tasks and functions in other
task/functions in the outer class and nested class.

SOL: https://www.edaplayground.com/x/357W

Q6: Calling methods of base class using super keyword both in outer class and nested class.
SOL: https://www.edaplayground.com/x/6Ajw

Q7: Calling static methods of base class in outer class and nested class.

SOL: https://www.edaplayground.com/x/3W3Z

Q8: Declaring members/method as protected in the base class. Accessing these members in
the outer class and the nested class.

SOL: https://www.edaplayground.com/x/6CwV

Q12: Misc Scenario – declare a base class (e.g. C1) and declare and extended class (e.g. C2).
Declare an outer class which is extended from C2 while the nested class is extended from C1.
Access the members declared in C1 from both the outer and nested class.

SOL: https://www.edaplayground.com/x/5qPR

You might also like