Preview

Computer Java

Powerful Essays
Open Document
Open Document
1329 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Computer Java
1. Object Orientd Prrogramming : A type of programming in which programmers define not only the data type of a data structure, but also the types of operations (functions) that can be applied to the data structure. In this way, the data structure becomes an objectthat includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects.
One of the principal advantages of object-oriented programming techniques over procedural programming techniques is that they enable programmers to create modules that do not need to be changed when a new type of object is added. A programmer can simply create a new object that inherits many of itsfeatures from existing objects. This makes object-oriented programs easier to modify.
To perform object-oriented programming, one needs an object-orientedprogramming language (OOPL). Java, C++ and Smalltalk are three of the more popular languages, and there are also object-oriented versions ofPascal.

2. Chracterstics of OOP:
Encapsulation – Encapsulation is capturing data and keeping it safely and securely from outside interfaces.
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.
Polymorphism- This is the ability to exist in various forms. For example an operator can be overloaded so as to add two integer numbers and two floats.
Abstraction- The ability to represent data at a very conceptual level without any details.
Some key features of the Object Oriented programming are: • Emphasis on data rather than procedure • Programs are divided into entities known as objects • Data Structures are designed such that they characterize objects • Functions that operate on data of an object are tied together in data structures • Data is hidden and cannot be accessed by external

You May Also Find These Documents Helpful

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

    What is procedural or algorithmic programming? What is object-oriented programming? What is the role of code reuse in object-oriented programming? Under what circumstances is object-oriented programming best suited? Under what circumstances is procedural or algorithmic programming best suited?…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    While making a program in .NET for commercial usages, there are many methods which are used to prevent reverse engineering and unauthorized usage of that particular program. While keeping the code 's functionality intact, the obfuscation methodology changes the coding in such a way that it becomes quite difficult even with tools to reverse engineer. Remember it becomes difficult not impossible to reverse engineer an obfuscated code. There are numerous ways and means to…

    • 793 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    • Identify how you can encapsulate the data and processes you identified into an object-oriented design.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    CIS 1 Ch 11 Part 2

    • 240 Words
    • 2 Pages

    5. (1 point) ____________________________ is the separation of data from the programs that manipulate the data.…

    • 240 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Actually, that's the principle of object oriented programming. This property allows us to encapsulate different parts of any real or imaginary object, and links to objects made of the same basic type, will inherit all its…

    • 290 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

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

    • 4788 Words
    • 20 Pages
    Powerful Essays
  • Good Essays

    It surprises me that data structures can look simple but once you start creating them it involves a lot of thinking and planning.…

    • 605 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Object-oriented Languages: mainly features as same as the imperative languages because these languages are evolved from imperative languages. The specialty rests on the object-oriented concepts in these languages. Widely used for every kind of software programming and the most commonly used languages are considered to these languages. Java, C#, C++ and Python are few examples.…

    • 1672 Words
    • 7 Pages
    Better 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

    What is procedural or algorithmic programming? What is object-oriented programming? What is the role of code reuse in object-oriented programming? Under what circumstances is object-oriented programming best suited? Under what circumstances is procedural or algorithmic programming best suited?…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    When it comes to writing a program there are so many ways a person can approach the problem. Think of it this way, a chef following a recipe can look at the ingredients and decided to add more of one thing and less of another or the chef can follow the recipe exactly. As long as the chef uses common logic on blending foods the dish will come out correctly. The same is true when building a program. A programmer has many tools to choose from to make it more or less complicated. The programmer also has several tools to choose from to ensure the program runs. So let me go over some of these essential tools right now and how they relate to one another.…

    • 779 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Inheritance is the process by which objects of one class acquire the properties of another class. For example, a student as well as a staff is a Person. Both have some common properties. Inheritance allows the programmer to reuse defined properties. Polymorphism Polymorphism means the…

    • 462 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Linkers and Loaders

    • 739 Words
    • 3 Pages

    Computer programs typically comprise several parts or modules; all these parts/modules need not be contained within a single object file, and in such case refer to each other by means of symbols. Typically, an object file can contain three kinds of symbols:…

    • 739 Words
    • 3 Pages
    Good Essays
  • Good Essays

    115 questions total, not for the weak. Covers everything from basics to JDBC connectivity, AWT and JSP. 1. What is the difference between procedural and object-oriented programs?- a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. b) In procedural program, data is exposed to the whole program whereas in OOPs program, it is accessible with in the object and which in turn assures the security of the code. 2. What are Encapsulation, Inheritance and Polymorphism?- Encapsulation is the mechanism that binds together code and data it manipulates and keeps both safe from outside interference and misuse. Inheritance is the process by which one object acquires the properties of another object. Polymorphism is the feature that allows one interface to be used for general class actions. 3. 4. What is the difference between Assignment and Initialization?- Assignment can be done as many times as desired whereas initialization can be done only once. What is OOPs?- Object oriented programming organizes a program around its data, i. e. , objects and a set of well defined interfaces to that data. An object-oriented program can be characterized as data controlling access to code. What are Class, Constructor and Primitive data types?- Class is a template for multiple objects with similar features and it is a blue print for objects. It defines a type of object according to the data the object can hold and the operations the object can perform. Constructor is a special kind of method that determines how an object is initialized when created. Primitive data types are 8 types and they are: byte, short, int, long, float, double, boolean, char. 6. What is an Object and how do you allocate memory to it?- Object is an instance of a class and it…

    • 6759 Words
    • 28 Pages
    Good Essays

Related Topics