Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

inheritance in oop

to inherite all properties of parent class into itself is called inheritance
it is alse kown as "is-a" relationship 

types of inheritance supported by java :::
    1. single      (one class pro to other) 
    2. multilevel  (one class pro to a and a class to b class pro to another)
    3. hierarical  (one class pro to a class and b class)


 
PREVIOUS NEXT
Tagged: #inheritance #oop
ADD COMMENT
Topic
Name
4+1 =