Docsity

Lecture Notes For Programming Class (Introduction to Programming), Lecture notes of Technology

Toggle sidebar
bg1
Computer Element
Hardware
Software
Algorithm – step by step
procedure to solve a given
condition
Pseudocode – informal language
to write a procedure to solve a
given problem
Flowchart – graphical
representation of an algorithm
Terminal
Data
(input/output)
Process
Decision
History of Java
The history of Java starts
from Green Team.
Green Team at Sun
Microsystem:
oJames Gosling
oMike Sheridan
oPatrick Naughton
Team initiated the Java
Language project on June
1991.
Team initiated a task to
develop a language for digital
devices such as set-top boxes,
televisions, etc.
Firstly, it was called
“Greentalk” and file
extension was .gt
After that, it was called “Oak”
and was developed as a part
of the Green project.
In 1995, Oak was changed to
Java.
Java Attributes
Familiar, Simple, Small
Compiled and Interpreted
Platform-Independent and
Portable
Object-Oriented
Robust and Secure
Distributed
Multithreaded and
Interactive
High Performance
Dynamic and Extensible
Machine Language Programming
o0101010
Assembly Language Programming
oADD AB
Structured LP/Procedural LP
oC language
Object Oriented Programming
oObject-oriented
programming (OOP) is a
programming language
model organized around
objects rather than
"actions" and data rather
than logic.
oEmulating/Simulating real
world object to
programming
Major Pillars of Object Oriented
Programming
1. Object - is a component of
a program that knows how
to perform certain actions
and how to interact with
other elements of the
program.
a. has attributes/
characteristics
color&dimension
b. has functionality/
behaviour
2. Class – specification of
object, template
3. Abstraction – taking the
necessary data/details and
ignoring the rest or
showing only the essential
features of the application
and hiding the details
4. Encapsulation – to protect
your program, binding the
data variables and
functions together in class
5. Inheritance - is a way to
reuse code. The class
which is inherited from, is
called the parent class,
and the class which
inherits the code from the
parent class is called a
son/daughter class.
Parent class to
son/daughter class
Son/daughter class to
Parent class
6. Polymorphism – many
function, cannot affect the
main data. Create
functions with same name
but different arguments,
which will perform
differently.
Array – set of variable with
the same data type
Single Dimensional
Two Dimensional
int z[]={1,2,3,4,5,6,7};
Control Constructs
1. Sequence
2. Decision
a. If
b. If-else
c. Switch case
3. Loop
a. while
b. do while
c. for
Elements
Index

Partial preview of the text

Download Lecture Notes For Programming Class (Introduction to Programming) and more Lecture notes Technology in PDF only on Docsity!

Computer Element  Hardware  Software Algorithm – step by step procedure to solve a given condition Pseudocode – informal language to write a procedure to solve a given problem Flowchart – graphical representation of an algorithm Terminal Data (input/output) Process Decision History of Java  The history of Java starts from Green Team.  Green Team at Sun Microsystem: o James Gosling o Mike Sheridan o Patrick Naughton  Team initiated the Java Language project on June 1991.  Team initiated a task to develop a language for digital devices such as set-top boxes, televisions, etc.  Firstly, it was called “Greentalk” and file extension was .gt  After that, it was called “Oak” and was developed as a part of the Green project.  In 1995, Oak was changed to Java. Java Attributes  Familiar, Simple, Small  Compiled and Interpreted  Platform-Independent and Portable  Object-Oriented  Robust and Secure  Distributed  Multithreaded and Interactive  High Performance  Dynamic and Extensible Machine Language Programming o 0101010 Assembly Language Programming o ADD AB Structured LP/Procedural LP o C language Object Oriented Programming o Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic. o Emulating/Simulating real world object to programming Major Pillars of Object Oriented Programming

  1. Object - is a component of a program that knows how to perform certain actions and how to interact with other elements of the program. a. has attributes/ characteristics color&dimension b. has functionality/ behaviour
  2. Class – specification of object, template
  3. Abstraction – taking the necessary data/details and ignoring the rest or showing only the essential features of the application and hiding the details
  4. Encapsulation – to protect your program, binding the data variables and functions together in class
  5. Inheritance - is a way to reuse code. The class which is inherited from, is called the parent class, and the class which inherits the code from the parent class is called a son/daughter class.  Parent class to son/daughter class  Son/daughter class to Parent class 6. Polymorphism – many function, cannot affect the main data. Create functions with same name but different arguments, which will perform differently. Array – set of variable with the same data type  Single Dimensional  **Two Dimensional int z[]={1,2,3,4,5,6,7}; Control Constructs
  6. Sequence
  7. Decision** a. If b. If-else c. Switch case 3. Loop a. while b. do while c. for Index Elements