Preview

Question and Answer: Java Technologies

Better Essays
Open Document
Open Document
4099 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Question and Answer: Java Technologies
Q. 1: a)What is Object Oriented Paradigm? Explain advantages of Object
Oriented Programming. 5 marks
Ans Object Oriented paradigm: The Object Oriented paradigm is centered on the concept of the object.
Everything is focused on objects. In this language, program consists of two things: first, a set of objects and second the way they interact with each other. Computation in this paradigm is viewed as the simulation of real world entities. The popular programming languages in this paradigm are C++, Simula,
Smalltalk and Java
Object Oriented programming: The world is Object Oriented, and Object Oriented programming expresses programs in the ways that model how people perceive the world. Figure 2 shows different real world objects around us which we often use for performing different functions. This shows that problem solving using the objects oriented approach is very close to our real life problem solving techniques.
The basic difference in Object Oriented programming (OOP) is that the program is organized around the data being operated upon rather than the operations performed. The basic idea behind OOP is to combine both, data and its functions that operate on the data into a single unit called object.
Object Oriented methods are favored because many experts agree that Object Oriented techniques are more disciplined than conventional structured techniques. (Martin and Odell 1992)
b) What is polymorphism? Explain the advantages of polymorphismwith an example.
Solution : Polymorphism is the capability of a method to do different things based on the object through which it is invoked or object it is acting upon. For example method find _area will work definitely for Circle object and Triangle object In Java, the type of actual object always determines method calls; object reference type doesn't play any role in it. You have already used two types of polymorphism
(overloading and overriding) in the previous unit and in the current unit of this

You May Also Find These Documents Helpful

  • Satisfactory Essays

    List two advantages and two disadvantages of using unified modeling language as a standard for object-oriented programs.…

    • 693 Words
    • 4 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
  • Good Essays

    Yet in an OOP, modules in the form of objects interact by sending messages to other objects. The power of OOP comes from the ability to inherit, encapsulate, and abstract that procedural logic. The importance of OOP is not as much in the language mechanism as it is in the thinking and designing process.…

    • 793 Words
    • 4 Pages
    Good 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
  • Better Essays

    3. a combined type, which involves a combination of the other two types and is the most common…

    • 1966 Words
    • 8 Pages
    Better Essays
  • Good Essays

    Archetype: the original pattern or model of which all things of the same type are representations or copies…

    • 1727 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Intro to Business

    • 995 Words
    • 4 Pages

    For example: researches who conduct market research survey might ask member of the public to complete questionnaires about a product from a new company. Those completed questionnaires are data. They are processed and analyze in order to prepare a report on the survey. That resulting report is information.…

    • 995 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

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

    • 4788 Words
    • 20 Pages
    Powerful Essays
  • Good Essays

    Reusability of Code

    • 511 Words
    • 3 Pages

    Object-oriented programming and procedural programming are two programming paradigms that distribute common attributes as well as various differences. A procedure is an additional name for a routing, technique or function. Procedures and objects both use algorithms to develop the system and any logical calculation that is necessary for the program. A function is divided from variables and data compositions. Procedures are intended to run the code in a precise order, while OPP merges data with the function in the function changes the data that is bound to it into a unit identified as an object. Other useful features such as abstraction, encapsulation, and inheritance can be achieved while working with OPP.…

    • 511 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Comparative Analysis

    • 920 Words
    • 4 Pages

    quantities, actions as objects. Data is processed into a form that creates an meaningful and sensible information so as to derive appropriate results as per the pre specified objectives. Data can be classified into 2 types :…

    • 920 Words
    • 4 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
  • 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
  • Good Essays

    Diploma H&Sc

    • 755 Words
    • 4 Pages

    Objects: can be used for point of reference, example holding up a cup when ask somebody if they would like a drink. The object can help the person to understand what you are saying.…

    • 755 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    I have learned many things from this class as it relates to computer programming. There are a few areas covered in this course by either the text or in our weekly class discussions about computers and computer programming that stood out to me. This paper is broken up into two discussions. The first part will cover general ideas and skills involved with computers and computer programming. The second part of my paper will go over some topics covered in the text for the class. Some areas that were discussed are as follows: Logic and Decision Structures, Using Repetition Structures, Checking user input for errors and lastly, Using Arrays for more Advanced Programs.…

    • 1406 Words
    • 6 Pages
    Powerful Essays

Related Topics