Abhijit  Kakade
Suppose you have 3 classes - ClassA , ClassB , ClassC ClassA will have 3 method MethodA() , MethodB(), MethodC().You are inheriting this ClassA in ClassB and ClassC.You want to MethodB Should not be accessible in ClassC , and MethodC Should not be accessible in ClassA. how you will design classes and inheritance ? is that possible in OOP's ??
By Abhijit Kakade in OOP/OOD on Jan 27 2015
  • hitesh basera
    Nov, 2020 28

    Yes. In class B define method B as sealed.

    • 0
  • prashath reddy
    Sep, 2019 26

    I don;t think this possible.Post the answe if it is possible.

    • 0
  • Sudarshan Hajare
    May, 2019 16

    This is not possible.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS