Preview

OOP Assigment 1 Sit 1

Powerful Essays
Open Document
Open Document
4788 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
OOP Assigment 1 Sit 1
Object-Oriented Programming

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

You May Also Find These Documents Helpful

  • Satisfactory Essays

    The plant method design pattern generates a group of connected items instantiated by subclasses (University of Phoenix, 2005). This design pattern generates items without indicating the category of item that's to be generated. The plant method pattern describes a different way of producing items by using subclasses to override the derived kind of item that's to be generated.…

    • 579 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Application code and comments should be written descriptively. The names of classes, methods and variables should be self-descriptive. Methods and classes will be commented to detail their…

    • 612 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Attribute-Based Programming: Attributes assist you to add declarative information in your programs. This information can then be queried at runtime using reflection.…

    • 485 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    Although the details can be quite complex, these details are the basic principles of object-oriented programming.…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 An Introduction to Hardware, Software, and the Internet An Introduction to Software Development Objects and Classes Algorithms Java Syntax and Style Data Types, Variables, and Arithmetic Boolean Expressions and if-else Statements Iterative Statements: while, for, do–while Implementing Classes and Using Objects Strings Class Hierarchies and Interfaces Arrays…

    • 3908 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    Explain: to make (something) comprehensible, esp. by giving clear and detailed account of the relevant structure, operation, surrounding circumstances etc…

    • 1299 Words
    • 6 Pages
    Good Essays
  • Better Essays

    I. A class is a collection of types and methods that all somehow work together.…

    • 939 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    it104 Assignment 1

    • 721 Words
    • 3 Pages

    What is encapsulation? | A way to cross data over a any network link |…

    • 721 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    References: • Nirosh. (2010). Introduction to Object Oriented Programming Concepts (OOP) and More. The Code Project. Retrieved from: http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx.…

    • 817 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Blockbuster Swot Analysis

    • 264 Words
    • 2 Pages

    • Developing strong mobile phone Apps for all mobiles with different types of operating system. For an example: Symbia , Windows Mobile and Android…

    • 264 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Inheritance in Java

    • 377 Words
    • 2 Pages

    In Java programming, inheritance plays an important role in a programmer's ability to reuse codes. Inheritance in basic terms allows a subclass to use the variables and methods of a superclass. When a programmer creates a subclass with new variables and methods, it can easily use the superclass's methods and variables by extending without having to rewrite the entire superclass over again. Therefore, the subclass inherits variables and methods from the superclass. In this sense, inheritance helps save time in writing codes because imagine how time-consuming it would be to work with a superclass which had thousands of methods and variables. Needless to say, the time spent by the programming would be very costly if inheritance was not available.…

    • 377 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Chemistry grade 11

    • 3344 Words
    • 18 Pages

    A combination of two or more kinds of matter, in which each component retains its own characteristics…

    • 3344 Words
    • 18 Pages
    Powerful Essays
  • Good Essays

    Adv /Dis adV of OOP

    • 614 Words
    • 3 Pages

    3.4 Advantages and Disadvantages of Object-Oriented Development • There are many advantages for object-oriented development (in contrast with other development methods): • • • • Allows full exploitation of the power of object-based and object-oriented programming languages This may seem an odd advantage, but remember that OOPLs had been around for many years (eg.…

    • 614 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Object Oriented Paradigm

    • 934 Words
    • 4 Pages

    An abstraction refers to how a given problem is represented in the program space. Programming languages themselves provide abstractions. Think about it like this: When was the last time you had to worry about the CPU's registers and stack? Even if you initially learned how to program in assembler, I'll bet it's been a long time since you had to worry about such low-level, machine specific details. The reason…

    • 934 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Entity type describes the schema or intension for a set of entities that share the same structure.…

    • 720 Words
    • 3 Pages
    Good Essays