use constructor class B and derived D
custom method is used
output should be below
variable i of B = 100
variable i of D = 500
use constructor class B and derived D
use abstract and override method
variable i of B = 100
variable i of D = 500
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 8, 2016, 9:50 AM EDT