Semester : S1 and S2
Year : 2020
Term : SEPTEMBER
Branch : MECHANICAL ENGINEERING
Scheme : 2015 Full Time
Course Code : BE 101-05
Page:3
000BE10105121804
b) Define 8 class in Python to store the details of a ship (name, source,destination),
with the following methods:
i) get_details() - to assign values to class attributes
11) print_details() - to display the attribute values
Create an object of the class and invoke the methods.
E> OF के
LIBRARY
Page 3 of 3
(7)