To avoid name clashing, we can access classes using their fully qualified names like:
pack1.Student student1;
pack2.Student student2;
53 Rajeev Gupta
Session-2
Inheritance
Type of inheritance
Diamond problem
InstanceOf operator
Final, Abstract classes and interface
Acess control: public, private,protected and default
Packages
Abstract class
Interface
54 Rajeev Gupta
Inheritance