LO1: For P1 Define OOPS. Advantages & disadvantages of OOPS. Characteristics of OOPS (check Week 1 & 2 video) Encapsulation (Define it and provide a code examples) Hint: https://www.c-sharpcorner.com/UploadFile/8a67c0/encapsulation-in-C-Sharp/ Class employee { Private String firstname; Private String lastname; } Main() { employee e = new employee(); Console.WriteLine(e.firstname); // this will give error as attributes are set with access modifier } Inheritance (Define it and provide code examples) (check Week 3 video) Hint: https://www.c-sharpcorner.com/blogs/learn-about-inheritance-in-c-sharp Class employee { Private String firstname; Private String lastname; … } Class fulltime_employee : employee { Private double salary; Void show_data() {….} } Main() { fulltime_employee e = new fulltime_employee(); Console.WriteLine(e.show_data()); } Polymorphism (Define it and provide code examples) Hint: https://dotnetwithwindowandweb.wordpress.com/2018/08/26/polymorphism-in-c-part-1/ And Polymorphism in c# Part 2 Check video 5 You can also add on other features like; constructor & destructorsAbstract Hint: https://www.codesdope.com/course/c-sharp-abstraction/#:~:text=Since%2C%20Employee%20is%20an%20abstract,subclasses%2C%20GetSalary%20method%20is%20defined. Interface Hint: https://www.onlinebuff.com/article_implementing-interface-in-c-with-an-example_18.html#:~:text=Example%20of%20Implicit%20Interface&text=Now%20let’s%20create%20a%20class,in%20below%20snippet%20of%20code.&text=Finally%20let’s%20create%20the%20objects%20of%20an%20interface%20%22IEmployee%22%20in,of%20a%20Console%20Application%20program. (You need to choose any 3 out of 6 characteristics) Class relationship in OOPS (discuss few lines on it) Hint: https://www.infoworld.com/article/3029325/exploring-association-aggregation-and-composition-in-oop.html Aggregation (define it and provide a UML class diagram) Composition (define it and provide a UML class diagram) For P4, M1, M2, D3, M4, D4 More specific for pass only-P4(Define design pattern, evaluate, provide 3 examples in each creational, structural and behavioural type and also define and evaluate all 3 examples in each category) Define design pattern and also cover the advantages Hint: https://www.shibajidebnath.com/benefits-of-design-patterns-in-application-development/ Creational (Define it and give examples and provide advantages of creational only) Hint: https://refactoring.guru/design-patterns/prototype Imp: Define and evaluate any three examples in that creational type You cover either on Singleton, prototype and builder (define all three examples and cover its advantages and disadvantages)-D4 Creational type used in my Application: (M4) I have used prototype due to the reason (why?) (Hint: use advantage of prototype as your arguments) Class diagram in relation to the case study Structural (Define it and give 3 examples) and provide advantages of structural only Hint: https://www.gofpatterns.com/design-patterns/module5/structuralPatterns-help-programmers.php Define and evaluate all the 3 examples (define all three examples and cover its advantages and disadvantages)-D4 Structural type used in my Application: I have used ——- due to the reason (why?) (Hint: use advantage of prototype as your arguments) You can cover on decorator Class diagram of the pattern used in my application Behavioural type (Define it and give examples and provide advantages of behavioural only) Define and evaluate 3 examples (define all three examples and cover its advantages and disadvantages)-D4 Behavioural type used in my Application: I have used template due to the reason (why?) (Hint: use advantage of prototype as your arguments) Class diagram of template Distinction Analyse the relationship between the object-orientated paradigm and design patterns. Hint: https://stackoverflow.com/questions/478773/how-is-oop-and-design-patterns-related#:~:text=Object%20Oriented%20Programming%20is%20a,certain%20scenario%20in%20a%20program. https://www.quora.com/What-is-the-relationship-between-object-oriented-paradigms-and-design-patterns For design patterns: (Documents attached for reference) LO2: UML class diagram (similar like the one given below) Define UML and its uses? Use case diagram Dataflow diagram M2 is already covered in M1. D2: My refined or improved UML class diagram is (something similar) And justify why did you added other class diagram here LO3: I have used 3 classes: Employee class: will store general details for all kinds of staffParttime_employee: inherit employee class and have data like, login time, logout time, hourly rate…Fulltime_employee: inherit employee class and have data like, login time, logout time, hourly rate… All testing to be shown here (Must given for Pass)-P3 Attached Application: M3 (Provide snapshots of important code at appendix-) Evaluation of your built application Appendix: Attached the whole code
