STIA1123-A201 / EXERCISES

0 stars 0 forks source link

EXERCISE 4 #6

Closed azmanyasin closed 3 years ago

azmanyasin commented 3 years ago

INSTRUCTION

1. Create an abstract class 'Parent' with a method 'message'. It has two subclasses each having a method with the same name 'message' that prints "This is first subclass" and "This is second subclass" respectively. Call the methods 'message' by creating an object for each subclass. 2. Create an abstract class 'Bank' with an abstract method 'getBalance'. $100, $150 and $200 are deposited in banks A, B and C respectively. 'BankA', 'BankB' and 'BankC' are subclasses of class 'Bank', each having a method named 'getBalance'. Call this method by creating an object of each of the three classes. 3. We have to calculate the percentage of marks obtained in three subjects (each out of 100) by student A and in four subjects (each out of 100) by student B. Create an abstract class 'Marks' with an abstract method 'getPercentage'. It is inherited by two other classes 'A' and 'B' each having a method with the same name which returns the percentage of the students. The constructor of student A takes the marks in three subjects as its parameters and the marks in four subjects as its parameters for student B. Create an object for each of the two classes and print the percentage of marks for both the students.

SUBMISSIONS

  1. Coding
  2. Output
AbuLaithEpic commented 3 years ago

https://github.com/AbuLaithEpic/EXERCISE-4/issues

MuhdNadzim commented 3 years ago

https://github.com/MuhdNadzim/Exercise4.git

noufhajifri commented 3 years ago

https://github.com/noufha/Exercise4.git

MSyafiqbHashim98 commented 3 years ago

https://github.com/MSyafiqbHashim98/Exercise4.git

danielfirdaus commented 3 years ago

https://github.com/danielfirdaus/exercise4.git

wolfoaxx commented 3 years ago

https://github.com/wolfoaxx/Exercise4.git

kunorazranblh commented 3 years ago

https://github.com/kunorazranblh/AbstractExercise.git

nurulErina commented 3 years ago

https://github.com/nurulErina/AbstratExercise

ahmadfaris8 commented 3 years ago

https://github.com/ahmadfaris8/Exercise4

mfirdaus07 commented 3 years ago

https://github.com/mfirdaus07/Exercise4

NellisaAina commented 3 years ago

https://github.com/NellisaAina/Exercise-4

Fauzanjaludin commented 3 years ago

https://github.com/Fauzanjaludin/Exercise4

FitrianiEka2 commented 3 years ago

https://github.com/FitrianiEka2/Exercise4.git

AisyahHumaira commented 3 years ago

https://github.com/AisyahHumaira/EXERCISE4/issues

suhadaibrahim commented 3 years ago

https://github.com/suhadaibrahim/exercise4/issues

Sasikala0105 commented 3 years ago

https://github.com/Sasikala0105/Exercise4.git https://github.com/Sasikala0105/Exercise4output/issues/1#issue-759989680

hafizhoho commented 3 years ago

https://github.com/hafizhoho/Exercise-4.git

waizazri commented 3 years ago

https://github.com/waizazri/Exercise4/tree/master/src/ExerciseFour

DanialAsyraf commented 3 years ago

https://github.com/DanialAsyraf/Exercise4/tree/master/src/Abstraction

Abiyyu303 commented 3 years ago

https://gist.github.com/Abiyyu303/cb64745c5e50fd171e5cd86d008e7667

osbert98 commented 3 years ago

https://github.com/osbert98/Exercise4/tree/97ded77f900ae266acf178de330ff4abb047c95f/OOPTutorial/src/Exercise4

sitinurulnadirah commented 3 years ago

https://github.com/sitinurulnadirah/Abstraction/issues

Khairinkasmadi commented 3 years ago

https://github.com/Khairinkasmadi/Exercise4.git

fikriferindraa commented 3 years ago

https://github.com/fikriferindraa/Exercise4

geevitha275649 commented 3 years ago

https://github.com/geevitha275649/STIA1123-A-/issues

fakahantu0202 commented 3 years ago

https://github.com/fakahantu0202/Exercise-4