-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
Write a set of classes as follows:
Concept
- is an abstract class
- has a
nameprop which is initialized in the constructor - has a
getNamemethod - has a
branchprop - has a
getBranchmethod
DevConcept
- is a subclass of
Concept - its name is
devConcept - has a
branchprop, being one of the valuesarchitecture,clean-code,languages(which is initialized in the constructor) - has a
getAreamethod
PhilosophicalConcept
- is a subclass of
Concept - its name is
philosophicalConcept - has a
branchprop (which is initialized in the constructor) - has a
getBranchmethod - has a
reasoningprop, which is an array of reasonings - has a
addReasoningmethod - has a
isPersuadingmethod, which returns true if the number of reasonings are more than 10
Things to consider
- You need to use access modifiers based on the use case
- The class params should be written in constructor params format
- In
Conceptclass, think twice if you need to set methods as abstract
What to google
- access modifiers
- abstract classes
- constructor params
Resources
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels