+ 1

Please tell me about inheritance and how we declare inheritance in java!

4th Aug 2016, 6:22 PM
Jeya Prakash J
Jeya Prakash J - avatar
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.
6th Apr 2018, 10:03 AM
Rusty.Metal
+ 3
Oh wait I just noticed the date, guess I'm too late Mr. Vadivelu.
6th Apr 2018, 10:04 AM
Rusty.Metal
+ 3
I'm also tamil bro, my name is Suriya.
6th Apr 2018, 10:09 AM
Rusty.Metal
+ 3
Haha I'm nanum b.sc final year than. Semester going on. Ok good luck bro.
6th Apr 2018, 10:18 AM
Rusty.Metal
+ 3
Yow nanum MCA than pana poren 😂
6th Apr 2018, 10:21 AM
Rusty.Metal
+ 3
Nanum potruken
6th Apr 2018, 10:24 AM
Rusty.Metal
+ 2
inheritance is fron the word itself. it gets the methods of a super class or the "parent" class.
24th Aug 2016, 8:13 AM
vlad villanueva
vlad villanueva - avatar
+ 2
I'm from Madurai, neenga?
6th Apr 2018, 10:11 AM
Rusty.Metal
+ 2
Ok bro add me on fb, suriya00@protonmail.com.
6th Apr 2018, 10:13 AM
Rusty.Metal
0
@usty thank you so much bro.... its my 2nd semester java exam so i asked but today im learned c#
6th Apr 2018, 10:05 AM
Jeya Prakash J
Jeya Prakash J - avatar
0
@usty yaaru ya nee vadivelu lam theriyuthu 😂
6th Apr 2018, 10:07 AM
Jeya Prakash J
Jeya Prakash J - avatar
0
@oh super Bro enga irukinga ipo
6th Apr 2018, 10:10 AM
Jeya Prakash J
Jeya Prakash J - avatar
0
paramakudi bro 😂
6th Apr 2018, 10:11 AM
Jeya Prakash J
Jeya Prakash J - avatar
0
hnmmm ok bro kalathula sandhipom😁😂😉
6th Apr 2018, 10:26 AM
Jeya Prakash J
Jeya Prakash J - avatar
- 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 { }
5th Aug 2016, 8:43 AM
MOHAMMAD AAQIB
MOHAMMAD AAQIB - avatar