adspace
I was asked to draw the class diagram for the below
scenario which should obey OOPS concept. A Portal is to be
developed for a school , which has 3 main divisions viz ,
Education , Admin & Trust. Each division has 2 sub
divisions Kinder Garden & Higer Secondary.
Answer Posted / adarsh
I think the best way to do this would be to have an interface for school,Kinder Garden and Higher secondary .Make School as the super class and kinder garden and secondary as an interface which extends the school interface.Then we can have three classes Education,Admin and Trust and make this classes implement both kinder garden and Secondary interfaces
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a constructor overloading in java?
What is an object in java and how is it created?
Realized?
Explain public static void main(string args[]) in java.
What is parsing in java?
Write a program to print count of empty strings in java 8?
Write a program to find the whether a number is an Armstrong number or not?
Is minecraft 1.15 out?
How to create a base64 decoder in java8?
Differentiate between static and non-static methods in java.
What are the differences between heap and stack memory in java?
What do you mean by an interface in java?
What is the difference between equals() and == in java?
How to sort array in descending order in java?
What is the difference between break and continue statements?