Skip to main content

Phenomenon and Concept


  • A phenomenon is a thing in the “real” world that has individual existence.
    • an object
  • A concept is a generalization, derived from a set of phenomena and based on the common properties of these phenomena.
    • a class
  • Characteristics of a concept 
    • A name
    • Intension, the set of properties of the phenomenon 
    • Extension, the set of phenomena covered by the concept 


Classification and Exemplification, Examples

  • • hat, 23, 34, mouse, telephone, book, 98, 45.34, hello
    • numbers: 23, 34, 98, 45.34 
    • words: hat, mouse, telephone, book, hello
  • mouse, tyrannosaurus rex, allosaurus, elephant, velociraptor
    • dinosaur: tyrannosaurus rex, allosaurus, velociraptor
    • mammal: mouse, elephant
  • A classification is a description of which phenomena that belongs to a concept.
  • An exemplification is a phenomenon that covers the concept
 

Comments

Popular posts from this blog

case Java Keyword

The case is used to label each branch in a switch statement. Examples int arg = <some value>; switch (arg) { case 1: <statements> break; case 2: <statements> break; default: <statements> break; }

catch Java Keyword

The catch keyword is used to define exception handling blocks in try−catch or try−catch−finally statements. Examples try { <block that may throw exceptions> } catch (<java.lang.Exception or subclass> e) { <code to handle exception e> } try { <block that may throw different exceptions> } catch (FooException e) { <code to handle FooException e> } catch (BarException e) { <code to handle BarException e> } try { <block that may throw exceptions> } catch (<java.lang.Exception or subclass> e) { <code to handle exception e> } finally { <statements that execute with or without exception> }

Polymorphism and Dynamic Binding

Polymorphism: One piece of code works with all shape objects. Dynamic binding: How polymorphism is implemented Take previous Shape class hierarchy  remove inheritance  remove general and abstract class Shape