+ 1
Can we use property of class in another class in a same program? If yes then how
plzzz give it an example
3 Réponses
+ 4
yeah it's called inheritance.
Just see java or c++ course of sololearn.
+ 1
do you mean, something a bit like in this (simplistic) example?
https://code.sololearn.com/cM3lFGUyMfTY/?ref=app
+ 1
You can use a public properties and methods defined in another class , also protected properties/methods from a parent class