Open azmanyasin opened 3 years ago
Name: Foo Roon Yi Matric No: 277088 https://github.com/FooRoonYi/Programming2-Exercise/tree/main/fruits
Name: Lim Zhun Wei Matric No: 279632 https://github.com/limzhunwei/Programming-II/tree/main/Exe_4_1
Name: Teoh Zhi Yi Matric No: 278645 https://github.com/zhiyi16510/Exercise-4.1/tree/master/Prog2Exercise3/src/Inheritance
Name: Yong Boon Keat Matric No: 278722 https://github.com/YongBoonKeat/Exercise4/tree/master/Exercise4/src/Exercise
Name:LOH KER YING Matric No:276984 https://github.com/keryiing27/STIA1123-EX4.git
Name: Chong Chee Twau Matric: 278751 https://github.com/ChongCheeTwau278751/E4.1
Name: Wong Re Jie Matric: 277741 https://github.com/wongrejie/Programming-2/tree/main/Exercise%204.1
Name: Aaron Tay Chun Guan Matric No: 276931 https://github.com/aaron-tay123/Exercise-4.1/tree/main
Name : AU CHYI MIN Matric No : 279673 https://github.com/AuChyiMin/Exercise4.1/tree/master/EXERCISE%202.1/src/InheritanceExe4p1
Name :SHARVETHA A/P K SARANGAN Matric Number : 269809 https://github.com/SharvethaSarangan/Exercise-4.1.git
Lee Tzong Ying 279093 PS: sorry sir i only realized today i didnt follow question instructions correctly so i modified it again today https://github.com/leetzongying/Exercise4.1/tree/master/Exercise4a/src/modified
Name : Ang Shu Khai Matric No : 276917 https://github.com/ASK0118/Exercise4p1.git
Name: Soon Sue Ying Matric No: 278955 https://github.com/soonsueying278955/STIA1123-Group-I/tree/main/ExerciseInheritance
Name: LOH SIEW CHIN Matric: 278723 https://github.com/lohsiewchin/Programming2-Exercises/tree/main/Prog2Exercises/src/Exe4_1
Name: Asma bint Mohd Nasir Matric no 273368 https://github.com/AsmaNasir47/Exercise-4.1
name : khanisha Matric No: 275587 https://github.com/Khanisha/exercise4.1
Name: Khoo Yen Ni Matric No: 278520 https://github.com/khooyenni/Programming2-Exercise4.1.git
Name : Vanisri Matric No: 278328 https://github.com/vanisri3/vanisri/tree/master/Exercise%204.1/src/fruitinheritance
Name: Chen Hui Ting Matric No: 276876 https://github.com/HuiTingChen/Exercise-4.1.git
Name : Cheng Ming Xuan Matric No: 277691 https://github.com/ChengMingXuan-s277691/Exercise-4.1.git
Name: Teh Yee Xin Matric no: 278070 https://github.com/tehyeexin/STIA1123_Programming2_Exercises/tree/main/Exercise%204.1
Name: Athirah Bazilah Binti Baharun Matric No: 277677 https://github.com/athirahbazilah/Exercise_4.1.git
https://github.com/NajibahAtiqah/Exercise4.1.git ; ; Nur Najibah Atiqah Abdul Aziz 281986
Nurafiza Binti Abdul Rashid 277839 https://github.com/Nurafiza058/ExcerciseProg1/tree/main/Exercise4.1
Name: Ginveree Kong May Cheng Matric No.: 279045 https://github.com/Ginveree/Exercise4.1/tree/main
Name: Lee Jie Hui Matric No.: 279096 https://github.com/JieHuiLee/Exercise_4.1.git
Name: Nur Adilah Diyana binti Jeffry Matric no.: 277048 https://github.com/adilahdiyana/Exercise-4.1/tree/main
NAME : CHUA WEE CHAN MATRIC NUMBER : 271948 https://github.com/ChuaWeeChan/STIA1123-EXERCISE-4.1.git
Name: Farah Nabilah Binti Abd Aziz No Matric: 280579 https://github.com/farahnabil4h/inheritance.git
INSTRUCTOR
Modify the following program by adding 2 more subclasses for Fruit which same class as Apple. Create another two sub-class under Apple such as green and red apple. Add suitable variables in all classes and create any methods that can describe the type of the class.
class Fruit { private String name; public Fruit(String name) { this.name = name; System.out.println("Fruit constructor is invoked"); } }
public class Apple extends Fruit { public Apple(String name) { super(name);
} }
SUBMISSION
Submit your coding before 12.30 pm on Monday, 26 April.