OOP Principles

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

List 3 Factors to consider when designing error messages.

1. Explain the error in non-technical terms 2. Suggest ways in which the error can be fixed 3. Be polite and don't blame the user

Describe FOUR advantages of programming using OOP.

1. Promotes good program design and good programming techniques 2. Code is easier to maintain 3. High level of abstraction is supported 4. Code reuse is promoted

List FOUR ways in which you can ensure that your design meets the requirements for an unambiguous, comprehensive GUI.

1. Use known shortcuts 2. standardize navigation 3. Interface elements must be clear 4. Provide alternative shortcut keys

What is a constructor?

A constructor is a special piece of code that tells an object how it should be created.

What is Encapsulation?

A language mechanism for restricting access to some of the object's components. The internal representation of an object is generally hidden from view outside of the object's definition

What is a toString?

A string that acts a A representation of the attributes of an object.

What are Logical Errors?

Bugs in a program that causes it to operate incorrectly, but not to terminate abnormally (or crash).

What are syntax errors?

Errors in the syntax of a sequence of characters that is intended to be written in a particular programming language.

What is Instantiation?

Instantiation is the concept of creating an object from a class or "plan" of the object. Many objects can be created from one class.

What 3 types of data should be used in order to test a program.

Normal Data Extreme Data Erroneous Data

What does OOP stand for?

Object Orientated programming.

What are run-time errors?

Software or hardware problems that prevents a program from working correctly.

What is Inheritance?

The concept of a class extending another class by incorporating it's attributes and methods and then possibly adding further attributes and methods (functionality) to the new class.

What is Abstraction?

The process of separating ideas from specific instances of those ideas at work.

What is Polymorphism?

The provision of a single interface to entities of different types.


Set pelajaran terkait

Chapter 1 Smartbook Questions - Finance

View Set

Chpt 10 Socioemotional Development in Early Childhood (questions)

View Set

Chapter 39: Assessment of Musculoskeletal Function. Chapter 40: Musculoskeletal Care Modalities - ML7

View Set

Speech to the Virginia Convention

View Set

Part 4: Writing to Evaluate Mortimer's Style QUIZ

View Set