oop-week-3
oop-week-3
Objective:
Define fundamental OOP concepts such as classes, objects, methods, attributes,
inheritance, polymorphism, encapsulation, and abstraction in Java.
4. Exercises
1. Create a Java class called Student with attributes name, age, and methods to
display details.
2. Write a program demonstrating inheritance with a Vehicle superclass and a
Bike subclass.
3. Implement polymorphism by overriding a method in a subclass.