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


Please Help Members By Posting Answers For Below Questions

What is a constructor overloading in java?

1129


What is an object in java and how is it created?

1144


Realized?

2268


Explain public static void main(string args[]) in java.

1081


What is parsing in java?

1046


Write a program to print count of empty strings in java 8?

1089


Write a program to find the whether a number is an Armstrong number or not?

1104


Is minecraft 1.15 out?

1047


How to create a base64 decoder in java8?

1142


Differentiate between static and non-static methods in java.

1131


What are the differences between heap and stack memory in java?

1148


What do you mean by an interface in java?

1105


What is the difference between equals() and == in java?

1044


How to sort array in descending order in java?

999


What is the difference between break and continue statements?

1131