Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pack2;
- public class Subject {
- static String[] subject = {"Maths", "C++", "Java", "Python"};
- public static String getSubject(int index){
- return subject[index-1];
- }
- }
- /* package1 -> Vehicle (speed, gear, seats, tires)
- packag2 -> Driver (name)
- package3 -> TwoWheeler (speed, gear, seats, tires)
- package4 -> FourWheeler (speed, gear, seats, tires)
- package5 -> Bullet (speed, gear, seats, tires, driverId)
- package6 -> Wagonr (speed, gear, seats, tires, driverId)
- package7 -> MainClass
- WAP to show all the details of a bike bullet and car wagonr with driverName
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement