Preview

Copro 2 Reviewer 2014

Good Essays
Open Document
Open Document
557 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Copro 2 Reviewer 2014
Parent Class is a Class that is used to define a new class.

Child Class is a Class created to inherit from a base class.

extends keyword is used to set the relationship between a child class and a parent class.

Overriding modifies the implementation of particular piece of behavior for a subclass.

Abstract Class is a class that cannot be instantiated.

Abstract method is a method that is declared without an implementation.
Interface is a blueprint of a class.

Final Keyword is used in several different contexts to define an entity which cannot later be changed.

Final Variable is a variable that holds a value that cannot be changed.

Final Method is a method that cannot be override.

Final Class is a class that cannot be extend.

Abstract is a process of hiding the implementation details.

Inheritance is a mechanism wherein a new class is derived from an existing class.

Object Oriented Programming is a programming paradigm the breaks down a programming task into series of interactions among different entities or object.

Procedural Programming is a style of programming in which the programming task is broken down into series of operations applied to data.

Objects represents "things" from the real world.

attributes is a characteristics that define a thing.

methods it is a self-contained block of program code similar to procedure.

Classes is a term that describes a group or collection of objects with common properties.

Encapsulation refers to the hiding of data and methods within an object.

The final keyword can be used in the following

1.variable - If you make any variable as final, you cannot change the value of final variable, It will be constant.
2.method - If you make any method as final, you cannot override it.
3.class - If you make any class as final, you cannot extend it.

Rules followed when performing overriding

An Overriding method cannot be less accessible than the method it overrides.
An Overriding method cannot throw more exceptions that

You May Also Find These Documents Helpful

  • Satisfactory Essays

    PT1420 Chapter 3 Review

    • 1062 Words
    • 8 Pages

    7. because it could be a variable conflict, the global variables are inherited throughout the whole program, so it very well could conflict with others…

    • 1062 Words
    • 8 Pages
    Satisfactory Essays
  • Satisfactory Essays

    1.) What is pseudocode? A.) Pseudocode is when you pre write a program in your own type of language to lay it out…

    • 453 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Procedural language is used for developing simple applications. The languages that use the procedural programming are Pascal and C languages. Some of the benefits of the procedural programming are: easy to read program code, easily maintainable program code as various procedures can be debugged in isolation, code is more flexible as you can change a specific procedure that gets implemented across the program.…

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

    You need to think of state and operations together as an entity, and then design your program as interactions between entities that exchange state and activate operations. OOP then is more of a design philosophy, and if I may say an art, then something with a rigorous definition or hard and fast rules.…

    • 793 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Unit 3 research

    • 383 Words
    • 2 Pages

    In a procedural language you tell the computer each step to perform. The computer performs those steps and, if they are well written, you will end up with our desired…

    • 383 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    concepts of classes, objects, constructors, methods, access control, this keyword, overloading methods and constructors, parameter…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    II. The general syntax for defining a class is shown here. It may look complicated, because it’s written in very general form here, but it’s very simple.…

    • 939 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    Java Programming I Exam

    • 912 Words
    • 4 Pages

    Locating and repairing all syntax errors is part of the process of ____ a program.…

    • 912 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    The following information will introduce general knowledge in basic programming concepts. It shall discuss basic types of computer programming languages as-well-as program development. There are three basic types of computer programming languages that will be discussed in a simple and easy to understand manner. We shall also describe the program development cycle and discuss why it is important to use a structured and organized process to create a computer programming language.…

    • 1318 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    * Each object exists separately and can be managed individually because the internal working of teach object is independent of other object. It is easy to modify a class without affecting other parts of the program because the public access to the class is through the use of its methods…

    • 633 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    Yayz

    • 699 Words
    • 3 Pages

    Subtype polymorphism - the idea of having some sort of superclass that we can subclass giving the subclass a lot of characteristics of the superclass. Example: Bird class that gets inherited by Ostrich, Duck, and Cuckoo. Dynamic dispatch - process of code invocation done at runtime since it cannot be determined at compile time. This is used in object oriented programming where we have multiple methods of the same name which take in different types. The invocation of the correct method is only known at runtime. Abstract classes - abstracting code for maximum reuse. Each abstract method defined in an abstract class is inherited by any subclass, but can be overwritten. Abstract classes cannot be instantiated Interface - a “contract”. Any class that implements an interface must have every method detailed in the interface for it to compile. Superclass / bass class - parent class of a…

    • 699 Words
    • 3 Pages
    Good Essays
  • Good Essays

    OOP Mwaks

    • 6094 Words
    • 30 Pages

    Methods, Variables and Constructors that are declared private can only be accessed within the declared class itself. Private access modifier is the most restrictive access level. Class and interfaces cannot be private. Variables that are declared private can be accessed outside the class if public getter methods are present in the class. Using the private modifier is the main way that an object encapsulates itself and hide data from the outside world.…

    • 6094 Words
    • 30 Pages
    Good Essays
  • Powerful Essays

    lecture 23

    • 2252 Words
    • 17 Pages

    3. OBJECT – a piece of software that has properties and functions that can be managed or controlled.…

    • 2252 Words
    • 17 Pages
    Powerful Essays
  • Good Essays

    fbgfhgfh

    • 1961 Words
    • 8 Pages

    Class Names - For all class names the first letter should be in Upper Case.…

    • 1961 Words
    • 8 Pages
    Good Essays