+ 1
Please tell me about inheritance and how we declare inheritance in java!
15 Respostas
+ 3
Using "extends" keyword for deriving a subclass from a superclass and "implements" keyword for deriving from an interface.
Note: only public and protected members will be inherited from the superclass to subclass.
+ 3
Oh wait I just noticed the date, guess I'm too late Mr. Vadivelu.
+ 3
I'm also tamil bro, my name is Suriya.
+ 3
Haha I'm nanum b.sc final year than. Semester going on. Ok good luck bro.
+ 3
Yow nanum MCA than pana poren 😂
+ 3
Nanum potruken
+ 2
inheritance is fron the word itself. it gets the methods of a super class or the "parent" class.
+ 2
I'm from Madurai, neenga?
+ 2
Ok bro add me on fb, suriya00@protonmail.com.
0
@usty thank you so much bro.... its my 2nd semester java exam so i asked but today im learned c#
0
@usty yaaru ya nee vadivelu lam theriyuthu 😂
0
@oh super Bro enga irukinga ipo
0
paramakudi bro 😂
0
hnmmm ok bro kalathula sandhipom😁😂😉
- 1
make the variable of the class as protected,so that it can only be acess by its subclass. Define subclass as:
class subclass extends superclass {
}