Preview

Spl Assignment1

Good Essays
Open Document
Open Document
733 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Spl Assignment1
Survey of Programming Languages – Assignment1

1. Abstraction is the process by which data and programs are defined with a representation similar to its meaning (semantics), while hiding away the implementation details. Abstraction tries to reduce and factor out details so that the programmer can focus on a few concepts at a time. i) Example of abstraction in OOPS. Consider a bank application in which there is a Customer Class. The necessary details to have are: Name, address, date of birth. We don't need how many houses he owns and what vehicles he owns so these are unnecessary details for customer object so we suppress these details in order to come up clearly with essential details i.e. Name, Address, date of birth.

ii) The process of abstraction in Java is used to hide certain details and only show the essential features of the object. In other words, it deals with the outside view of an object (interface). For example, the Java Collections Framework defines the abstraction called java.util.Map. It is an abstract view of a software object that maps from one set of objects into another. The class java.util.TreeMap implements the Map abstraction.

2. Abstract Data Type (ADT) is the logical picture of the data and the operations to manipulate the component elements of the data. Data structure is the actual representation of the data during the implementation and the algorithms to manipulate the data elements. ADT is in the logical level and data structure is in the implementation level. i) ADT is implementation independent. For example, it only describes what a data type List consists (data) and what are the operations it can perform, but it has no information about how the List is actually implemented. Whereas data structure is implementation dependent, as in the same example, it is about how the List implemented ie., using array or linked list. Ultimately, data structure is how we implement the data in an abstract data type.

ii) Data Structures are

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Unit 6 Assignment 1

    • 228 Words
    • 1 Page

    1. How much data has been modified between the last back and the time of failure?…

    • 228 Words
    • 1 Page
    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
  • Satisfactory Essays

    Unit 6 Assignment 1

    • 417 Words
    • 2 Pages

    Extended Service Set: A wireless LAN in which all devices communicate through one wireless access point at a time, but the wireless LAN has at least two access points that cooperate to create the single wireless LAN.…

    • 417 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    • Describe the architectural differences between the object-oriented and structured designs. Which of the designs makes more sense to you? Why?…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    9/11 Attacks

    • 488 Words
    • 2 Pages

    3. Exemplification uses examples to illustrate or explain a general point or an abstract concept.…

    • 488 Words
    • 2 Pages
    Good Essays
  • Good Essays

    PTLLS Assignment 001

    • 2116 Words
    • 8 Pages

    The following guidance document contains important information relating to the key aspects of Legislation, Regulatory requirements and Codes of practice used within the Lifelong Learning Sector. Also within this document is information and advice on the boundaries between the teaching role and other professional bodies, the point of referral to be able to meet the needs of the learner and ways to promote appropriate behaviour and respect for others.…

    • 2116 Words
    • 8 Pages
    Good Essays
  • Good Essays

    Ctlls Assignment 003

    • 1305 Words
    • 6 Pages

    Assessments are used so that we can check that learning has taken place and to what extent. I use assessments at all stages of the learning process in line with organizational requirements.…

    • 1305 Words
    • 6 Pages
    Good Essays
  • Best Essays

    Dtlls Assignment 2

    • 3546 Words
    • 15 Pages

    Capel, S et al. Learning to teach in the secondary school. London: Routledge Falmer, 2001.…

    • 3546 Words
    • 15 Pages
    Best Essays
  • Good Essays

    Ptlls Level 3 Assignment

    • 1438 Words
    • 6 Pages

    Write a concise summary (approximately 1’200 words) to demonstrate your understanding of your role and responsibilities as a teacher in relation to:…

    • 1438 Words
    • 6 Pages
    Good Essays
  • Good Essays

    CHAPTER11

    • 2591 Words
    • 18 Pages

    Which line of code will declare and create an instance of a new object variable called…

    • 2591 Words
    • 18 Pages
    Good Essays
  • Satisfactory Essays

    Programmer, in addition, may represent the properties of the original thing by using symbols in the model, which are so-called symbolic model. Usually, this is what a mathematician does when describing the behavior of something using algebra and equations. Similarly, programmer may use diagram like flow chart to represent some properties of a system:…

    • 318 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Computer Java

    • 1329 Words
    • 6 Pages

    • Functions that operate on data of an object are tied together in data structures…

    • 1329 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    ghhj

    • 546 Words
    • 5 Pages

    Abstraction refers to the ability to make a class abstract in OOP. An abstract class is one that cannot be instantiated. All other functionality of the class still exists, and its fields, methods, and constructors are all accessed in the same manner. You just cannot create an instance of the abstract class.…

    • 546 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    Python Notes

    • 10999 Words
    • 44 Pages

    * Object-oriented programming (OOP): Methodology that defines problems in terms of objects that send messages to each other…

    • 10999 Words
    • 44 Pages
    Powerful Essays
  • Better Essays

    Electronics Engineering

    • 3340 Words
    • 14 Pages

    An abstract class is a class that is declared by using the abstract keyword. It may or may not have abstract methods. Abstract classes cannot be instantiated, but they can be extended into sub-classes.…

    • 3340 Words
    • 14 Pages
    Better Essays

Related Topics