Week2 Lab Programs
Week2 Lab Programs
Definition:
Java, Inheritance is an important pillar of
OOP(Object-Oriented Programming).
Hierarchical inheritance
Polymorpysam:
• Definition:
• The word ‘polymorphism’ means ‘having many
forms’.
• In Java, polymorphism refers to the ability of a message
to be displayed in more than one form
• Defination:
•
Encapsulation in java is a fundamental OOP (object-
oriented programming) principle that combines data
and methods in a class.