Software Project
National Diploma 2nd Year
TASK 1(P1) - EXPLAIN THE KEY FEATURES OF OBJECT-ORIENTED PROGRAMMING
In not less than 150 words describe the key features of object oriented programming.
The main features of OOP are:
Inheritance
Abstraction
Encapsulation
Polymorphism
Inheritance is when a class (subclass) has the same attributes and methods of another class (parent class); this is done by creating class from an existing class. While a subclass has properties derived for the parent class, it can also have properties of its own.
Abstraction is used to simplify a complex object into a more generalised concept and its basic information and function of an object. It means looking at, for example, the idea of a mobile instead of a specific model and make.
Encapsulation is used to hide the internal workings of an object from the rest of the program. For example, when using a mobile, you do not need to know how the touch is implemented to the shown controls or how a message is sent to another person.
Polymorphism is the ability of two different objects to respond to the same event in their own way, depending on their data type or class. For example, different types of phones all have a numeric pad that needs to be pressed multiple times to call a person.
TASK 4(P2) - DEMONSTRATE THE USE OF OBJECT ORIENTED TOOLS AND TECHNIQUES
Using the Smartphone application, in not less than 250 words provide reasons for the tools and techniques used. Include types of variables (i.e. global, local, static, overloads and instances).
We use access modifiers to determine who can access it. When a field is marked as Private, it is meant to be only accessed within the same class where it is declared. When a field is marked as Public, it can be accessed from within the same class and also from the outside.
Another type of tool is the Properties tab which is used as a way of reducing the lines of code and setting the properties in the