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 data access object (DAO) software program design pattern encapsulates use of data by concealing its difficulty from end users (University of Phoenix, 2005). This design pattern is a concept offering an abstract interface to a database or perseverance method, which it only provides a few specified functions excluding the visibility of the database particulars. The DAO includes a mapping from the software calls to its perseverance layer that isolates the general public interface of the DAO.…

    • 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

    And also I have learned how to create ASP.NET controls. There are different controls of ASP.NET. They are: ASP. Textbox, ASP. Gridview, ASP. Detailsview, ASP. Rotator:…

    • 485 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    If you consider a kitchen, you see it is also composed of several, smaller components, including the oven, refrigerator, and microwave. Top-level objects are composed of smaller components that do the actual work. This perspective is a very natural way of looking at our world, and one with which we are all familiar. We do the same thing in object-oriented programming:…

    • 1775 Words
    • 8 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
  • Powerful Essays

    abstraction --- the process of leaving out details in perceiving, thinking about and labeling objects and events…

    • 2210 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    6 8c Chapter Excercises

    • 515 Words
    • 2 Pages

    Polymorphism is the concept that a message gives different meanings to different objects. For example GOOD NIGHT message might produce different results depending if it is received by a child or the family dog. When received by the parent object the message causes the parent object to read a bedtime story. When received by the dog object it causes the dog to go to sleep and when received by the child object it causes the child to get ready for bed.…

    • 515 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Into the Wild: Vocabulary

    • 319 Words
    • 2 Pages

    abstraction- the act of considering something as a general quality or characteristic, apart from concrete realities, specific objects, or actual instances.…

    • 319 Words
    • 2 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

    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

    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

    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
  • 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
  • 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