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

  • Better Essays

    Ptlls Assignment1

    • 1441 Words
    • 6 Pages

    In this assignment I will be looking at the five stages of the teaching cycle. I will also identify the legislative requirements and codes of practise that directly impact on teaching and the learning environment. The cycle can be followed by teacher and learner alike and must be followed for learning to be truly effective as described in the following quote: Ann Gravells (2008: 27) “It’s called as cycle as you can start at any point, but you must follow through all the other points for teaching and learning to be effective.”…

    • 1441 Words
    • 6 Pages
    Better Essays
  • 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

    Understanding object-oriented methodologies is often difficult. You already understand that object-oriented analysis and design emulates the way human beings tend to think and conceptualize problems in the everyday world. With a little practice, object-oriented programming will become second nature to you.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    6 8c Chapter Excercises

    • 515 Words
    • 2 Pages

    In object-oriented analysis each object represents real people, places, events, and transactions (nouns). Unlike structured analysis, which treats data and processes separately, objects include data and processes that can affect the data. A major advantage of O-O designs is that systems analysts can save time and avoid errors by using modular objects, and programmers can translate the designs into code, working with reusable program modules that have been tested and verified…

    • 515 Words
    • 2 Pages
    Satisfactory 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
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

    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.…

    • 4788 Words
    • 20 Pages
    Powerful 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
  • 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
  • Powerful Essays

    Computer Java

    • 1329 Words
    • 6 Pages

    Inheritance- This is the process by which a class can be derived from a base class with all features of base class and some of its own. This increases code reusability.…

    • 1329 Words
    • 6 Pages
    Powerful Essays

Related Topics