Output :
base cought
NEXT Question comes in Mind is :
What if inheritance is of PRIVATE or PROTECTED
Ans: in that case object will be cought at Derived catch block only.Remember : Only Public inheritance is " IS-A "relation ., can be treated as BASE TYPE
Excellent Knowledge thanks for sharing
ReplyDeletedbms interview questions
spring interview questions
jsp interview questions
c++ interview questions
Thanks for provide great informatic and looking beautiful blog
ReplyDeletepython training in bangalore | python online Training
artificial intelligence training in bangalore | artificial intelligence online training
machine learning training in bangalore | machine learning online training
uipath-training-in-bangalore | uipath online training
blockchain training in bangalore | blockchain online training
aws training in Bangalore | aws online training
data science training in bangalore | data science online training
hadoop training in bangalore | hadoop online training
iot training in bangalore | iot online training