the process of creating a child from the parent class and also define their
properties in the child class.
Types of Inheritance:
1) Single
2) Multiple--- that not present in JAVA
3) Multilevel
4) heirarchical
5) Hybrid---- that not present in java.
if we dont create default constructor in parent class then compiler will create the
default constructor internally.
Parameter constructor of parent only invoke when we call from the child class by
using super(paramter).
Super is used so that we can call the functionality of the parent class without
creating any extra memory.
if i used "this" with variables then that variable behave like a instance variable.
Interface in java:
Interface is a blueprint of a class.
we cannot create an object of an Interface.
Nested Interface:
Interface inside interface.
Abstraction: the act of showing essential info and hiding the background details.
rules :
if there is abstract method in a class then that class must be abstract
if there is a abstract class then abstract method may or may not be present.
Ans it is an empty interface. that means it does not have any abstract method.