What is inheritance

->Creating a new classes from the existing class and get all the properties from the existing class and use it in the inherit class .
-> we use "extends" keyword for inheritance
ex - class student extends teacher

Comments

Popular posts from this blog