FINAL ARTICULATE PROJECT

docx

School

Brigham Young University, Idaho *

*We aren’t endorsed by this school

Course

210

Subject

Computer Science

Date

Nov 24, 2024

Type

docx

Pages

1

Uploaded by ChancellorFreedomTapir22

Report
FINAL ARTICULATE PROJECT Abstraction: Abstraction is process that allows us to focus on the essential features of an object and ignore the irrelevant details or information which means that one class does not have to the inner information of another to be able to use it. The class can use the information of another one just based one its interference. For example, in my project precisely Foundation 1, I used abstraction to design classes representing key entities, such as Comments and Videos, focusing on essential attributes and methods to interact with these entities. I was able to use the “comments” in the Videos class. So, as we can see, Abstraction help create a reusable code. This helped simplify the overall system design. Encapsulation: Encapsulation is the process or way of hiding of data implementation by restricting access to public methods. In Encapsulation, a class hides the internal details of how the data is stored and manipulated from the outside, providing a controlled interface for interaction. It restricts direct access to the internal data of a class. For example, in Foundation 2, I used Encapsulation to hide “name”, “productID”, “price”, “quantity” and the access of these fields is controlled through their methods(GetName, GetproductID, GetPrice, GetQuantity), ensuring that the integrity of the data is maintained, and we can’t access or modify the private fields from outside the class. Inheritance: Inheritance is the process that allow a class to automatically access or inherit all the attributes and methods available in another class. It allows a class to inherit the properties and behaviors of another base class, promoting code reuse. With Inheritance, we reduce code duplication since we don’t have to rewrite the code again what makes our code readable and organized. In foundation 3, we created a base class called “Event” and all the other classes( Order, Reception, OutdoorGathering) inherited all the attributes and methods of the base class. We did this by using a line like “public class OutdoorGathering : Event”. Polymorphism: Polymorphism enables objects to be treated as instances of their parent class, and it includes method overriding and interfaces, allowing for flexibility in using different implementations. In polymorphism, we are able to override and recall an attribute or methods from a base class even after using inheritance. It enables the creation of flexible and reusable code by allowing different classes to be treated uniformly, promoting maintainability and extensibility. In Foundation 4, we created a base class “Activity” that all the other classes inherited but we still recalled the methods of the base class such us “Speed”, “Distance” in our subclass ( Cycling).
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help