Docsity

Learn Java theory ICSE Grade 8,9, Slides of Computer science

Partial preview of the text

Download Learn Java theory ICSE Grade 8,9 and more Slides Computer science in PDF only on Docsity!

  • Session

Introduction to Java & Bluej Environment

Unique entity which has its own characteristics and behavior Object Wrapping up of data and function into a single unit called class is encapsulation Encapsulation Class is a set of similar objects Each object has its own attribute and common behavior Class Process by which objects of one class can link and share some common properties of objects from another class. Inheritance Act of representing the essential features without including the background details . Data Abstraction Process of using a function for more than one purpose. Polymorphism Principles of Object Oriented Programming

Object Unique entity which has its own characteristics and behavior Characteristic : Colour and shape Behavior : Write Characteristics are considered as data members Behavior is considered as functions

Data Abstraction

  • (^) Act of representing the essential features without including the background details When you buy a car, you see only the features in the car and not internal parts of the car

Encapsulation

  • (^) Wrapping up of data and function into a single unit called class is encapsulation. DATA + FUNCTION = CLASS

Polymorphism

  • (^) Process of using a function for more than one purpose.

What is a computer program? A software program is commonly defined as a set of instructions, or a set of modules or procedures, that allow for a certain type of computer operation

Difference between POP & OOP Procedure oriented Object oriented programming Emphasis is on code. (Programs are written around what is happening) Emphasis is on data items rather than code. (Programs are written around “Who is being affected )

Explain four principles with real life examples

  • (^) Act of representing the essential features without including the background details
  • (^) Abstraction is a process of hiding the implementation from the user, only the functionality is exposed here. So you are aware only of what the application does, not how it does it.
  • (^) Encapsulation binds together the data and functions that manipulate the data, keeping it safe from interference and misuse.

Coffee Vending Machine

Message Passing

  • (^) Objects interact with each other
  • (^) They share the common properties and behavior
  • (^) This concept is message passing

HISTORY AND

DEVELOPMENT OF JAVA