SlideShare a Scribd company logo
1 of 23
Interfacing With High level Language progaraming
1
Computer Architecture
And Assembly language
Presentation Topic :
Interfacing With High
Level Programing Language
Interfacing With High level Language progaraming
2
Mansoor Bashir
Interfacing With High level Language programming 3
A high-level language is a programming language such as C,
FORTRAN, or Pascal that enables a programmer to write
programs that are more or less independent of a particular
type of computer. Such languages are considered high-
level because they are closer to human languages and
further from machine languages.
Programs written in a High-level language must be Translated
into machine language by a compiler or Interpreter
High-level language
Interfacing With High level Language progaraming 4
Fortran(1954) Lisp(1958) COBOL(1959) Simula(1964)
Basic(1964) Smalltalk(1969) Prolog(1970) Pascal(1970)
C(1971) ML(1973) Scheme(1975)
Ada(1979) C++(1983) Perl(1987) Python(1991)
Java(1995)
C#(2000) VB.NET(2001)
Many different high-level languages
have been developed, e.g.:
Interfacing With High level Language programming 5
Categories of programming languages
Interfacing With High level Language progaraming 6
Interfacing With High level Language programming 7
Processing a High-Level Language Program
The only language understood by a computer is machine language.
i
Interfacing With High level Language progaraming 8
Characteristic of High Level Language:-
High level languages have several advantages
Easy to learn:-
The high Level Languages are close to human languages. The instructions
written in high level languages are similar to English like words and
Statements. This makes the high level languages easy to learn and use.
Easy to detect errors:-
The logic of the program written in high level languages is very simple and
easy. The instructions of program are like English language statements. In
case of errors, it is very easy to detect (or find) and remove errors in the
Program. It is also easy to modify the Program.
.
Interfacing With High level Language progaraming 9
Machine Independent:-
The program written in High Level Language is machine independent. It means that
a program written or compiled on one type of Computer can be executed (run) on
another different type of Computer that has different architecture.
For Example:-
A program written on a Computer using Intel Processor can be run on
computer having Motorola Processor (but with a little Modification).
Source code is understandable by another programmer:-
The instructions of the program written in high level language are like
English language statements. These are written according to the standard syntax of
the language. Therefore, a computer programmer can easily understand a program
written by another programmer
Interfacing With High level Language progaraming 10
Advantages of high-level languages
- better portability (program runs on many CPUs)
- natural structures for expressing flow of control
- much better support for software maintenance
- much better support for software reuse
Interfacing With High level Language progaraming 11
Understanding interface-based programming
 Implementing an interface
Obtaining interface references
 Interface hierarchies
 Multiple base interfaces
Interfaces
Interfacing With High level Language progaraming 12
C# only supports single inheritance, the interface-based
protocol allows a given type to support numerous
behaviors, while avoiding the issues that arise when
deriving from multiple base classes (as in C++).
Interface-Based Programming
Interfacing With High level Language progaraming 13
Interface-Based Programming
In COM , the only way a
client can communicate with a COM
component is via an interface pointer (not a
direct object reference).
An interface is a description of the actions that
an object can do... for example when you flip a
light switch, the light goes on, you don't care
how, just that it does.
Interfacing With High level Language progaraming 14
Implementing an Interface
Declare a class that implements an interface, you include
an implements clause in the class declaration. Your class
can implement more than one interface
WHAT IS interface in Java?
An interface is a reference type in Java, it is similar to
class, it is a collection of abstract methods. A class
implements an interface, thereby inheriting the abstract
methods of the interface. Along with abstract methods
an interface may also contain constants, default methods,
static methods, and nested types.
Interfacing With High level Language progaraming 15
Interfaces in Object Oriented Programming Languages
An interface is a programming structure/syntax that
allows the computer to enforce certain properties on
an object (class). For example, say we have a car class
and a Bus class and a Bike class. Each of these three
classes should have a start engine() action. How the
"engine is started" for each vehicle is left to each
particular class, but the fact that they must have a start
engine action is the domain of the interface.
Interfacing With High level Language progaraming 16
Explicit Interface Implementation
If a class implements two interfaces that contain a member with the same
signature, then implementing that member on the class will cause both
interfaces to use that member as their implementation.
Interfacing With High level Language progaraming 17
Interfacing With High level Language programming 18
Interface Hierarchies
// The base interface
public interface IDraw
{
void Draw();
}
public interface IDraw2 : IDraw
{
void IDrawToPrinter();
}
public interface IDraw3 : IDraw2
{
void DrawToMetaFile();
}
Interfacing With High level Language progaraming 19
Identical Interfaces
// Three interfaces each defining identical methods
public interface IDraw
{
void Draw();
}
public interface IDraw3D
{
void Draw();
}
public interface IDrawToPrinter
{
void Draw();
}
Interfacing With High level Language progaraming 20
Multiple Base Interfaces
In C# it is completely permissible to create an interface that
derives from multiple base interfaces .
public interface Vehicle
{
void Drive();
}
public interface rode
{
void Drive();
}
public interface Car : Vehicle, rode
{
void showDrives();
}
Interfacing With High level Language progaraming 21
Interfaces in Object Oriented Programming Languages
An interface is a programming structure/syntax that allows
the computer to enforce certain properties on an object
(class). For example, say we have a car class and a Bus class
and a Bike class. Each of these three classes should have a
start engine() action. How the "engine is started" for each
vehicle is left to each particular class, but the fact that they
must have a start engine action is the domain of the interface.
Interfacing With High level Language progaraming 22
Implementing an Interface
To tell the computer that a new class that you are writing will fulfill all the
requirements (implement all the functions) of an interface, you must use the
keyword implements in the same location where you can use the
keyword extends.
Interfacing With High level Language progaraming 23
Thank You

More Related Content

What's hot

Introduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusIntroduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusHem Pokhrel
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating SystemsRitu Ranjan Shrivastwa
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & DecoderSyed Saeed
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compilerIffat Anjum
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Piyush Rochwani
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipeliningMazin Alwaaly
 
High level languages representation
High level languages representationHigh level languages representation
High level languages representationgaurav jain
 
Buses And Its Types Formation
Buses And Its Types FormationBuses And Its Types Formation
Buses And Its Types Formationalihaxxan
 
Computer Organization Lecture Notes
Computer Organization Lecture NotesComputer Organization Lecture Notes
Computer Organization Lecture NotesFellowBuddy.com
 
Multiprocessor
MultiprocessorMultiprocessor
MultiprocessorNeel Patel
 
High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)Maliha Jahan
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine CodeProject Student
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Subhasis Dash
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly languageAhmed M. Abed
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulationSanjeev Patel
 
Design issues for the layers
Design issues for the layersDesign issues for the layers
Design issues for the layersjayaprakash
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Gaditek
 

What's hot (20)

Introduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusIntroduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control Bus
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compiler
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
 
High level languages representation
High level languages representationHigh level languages representation
High level languages representation
 
Buses And Its Types Formation
Buses And Its Types FormationBuses And Its Types Formation
Buses And Its Types Formation
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
 
Computer Organization Lecture Notes
Computer Organization Lecture NotesComputer Organization Lecture Notes
Computer Organization Lecture Notes
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine Code
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly language
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
Design issues for the layers
Design issues for the layersDesign issues for the layers
Design issues for the layers
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 

Similar to High Level Lang Interfacing

Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programmingMukesh Tekwani
 
Introduction To Computer Programming
Introduction To Computer ProgrammingIntroduction To Computer Programming
Introduction To Computer ProgrammingHussain Buksh
 
2 Programming Language.pdf
2 Programming Language.pdf2 Programming Language.pdf
2 Programming Language.pdfKINGZzofYouTube
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programmingAzmiah Mahmud
 
Trend of Visual Programming Language
Trend of Visual Programming LanguageTrend of Visual Programming Language
Trend of Visual Programming LanguageTeddy Marcus
 
English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacionVillalba Griselda
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and developmentAli Raza
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNoel Malle
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
Introduction Programming Languages
Introduction Programming LanguagesIntroduction Programming Languages
Introduction Programming LanguagesManish Kharotia
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docAmanGunner
 
maincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptxmaincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptxKaruthayya
 

Similar to High Level Lang Interfacing (20)

Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
 
Introduction To Computer Programming
Introduction To Computer ProgrammingIntroduction To Computer Programming
Introduction To Computer Programming
 
2 Programming Language.pdf
2 Programming Language.pdf2 Programming Language.pdf
2 Programming Language.pdf
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
 
Trend of Visual Programming Language
Trend of Visual Programming LanguageTrend of Visual Programming Language
Trend of Visual Programming Language
 
English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacion
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Ict topic 5
Ict topic 5Ict topic 5
Ict topic 5
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Introduction Programming Languages
Introduction Programming LanguagesIntroduction Programming Languages
Introduction Programming Languages
 
Computer languages 11
Computer languages 11Computer languages 11
Computer languages 11
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Notacd07
Notacd07Notacd07
Notacd07
 
Nota programming
Nota programmingNota programming
Nota programming
 
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.docICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
ICT-DBA4 -05-0811-Apply-Object-Oriented-Programming-Language-Skills.doc
 
Notacd071
Notacd071Notacd071
Notacd071
 
maincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptxmaincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptx
 

More from .AIR UNIVERSITY ISLAMABAD

More from .AIR UNIVERSITY ISLAMABAD (6)

Risk Assessment
Risk AssessmentRisk Assessment
Risk Assessment
 
Dining philosopher
Dining philosopherDining philosopher
Dining philosopher
 
Mission ,Vision statement, and strategies of Unicef
Mission ,Vision statement, and strategies of UnicefMission ,Vision statement, and strategies of Unicef
Mission ,Vision statement, and strategies of Unicef
 
Pipelining & All Hazards Solution
Pipelining  & All Hazards SolutionPipelining  & All Hazards Solution
Pipelining & All Hazards Solution
 
Project Management System
Project Management SystemProject Management System
Project Management System
 
Code Converters & Parity Checker
Code Converters & Parity CheckerCode Converters & Parity Checker
Code Converters & Parity Checker
 

Recently uploaded

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 

Recently uploaded (20)

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

High Level Lang Interfacing

  • 1. Interfacing With High level Language progaraming 1 Computer Architecture And Assembly language Presentation Topic : Interfacing With High Level Programing Language
  • 2. Interfacing With High level Language progaraming 2 Mansoor Bashir
  • 3. Interfacing With High level Language programming 3 A high-level language is a programming language such as C, FORTRAN, or Pascal that enables a programmer to write programs that are more or less independent of a particular type of computer. Such languages are considered high- level because they are closer to human languages and further from machine languages. Programs written in a High-level language must be Translated into machine language by a compiler or Interpreter High-level language
  • 4. Interfacing With High level Language progaraming 4 Fortran(1954) Lisp(1958) COBOL(1959) Simula(1964) Basic(1964) Smalltalk(1969) Prolog(1970) Pascal(1970) C(1971) ML(1973) Scheme(1975) Ada(1979) C++(1983) Perl(1987) Python(1991) Java(1995) C#(2000) VB.NET(2001) Many different high-level languages have been developed, e.g.:
  • 5. Interfacing With High level Language programming 5 Categories of programming languages
  • 6. Interfacing With High level Language progaraming 6
  • 7. Interfacing With High level Language programming 7 Processing a High-Level Language Program The only language understood by a computer is machine language. i
  • 8. Interfacing With High level Language progaraming 8 Characteristic of High Level Language:- High level languages have several advantages Easy to learn:- The high Level Languages are close to human languages. The instructions written in high level languages are similar to English like words and Statements. This makes the high level languages easy to learn and use. Easy to detect errors:- The logic of the program written in high level languages is very simple and easy. The instructions of program are like English language statements. In case of errors, it is very easy to detect (or find) and remove errors in the Program. It is also easy to modify the Program. .
  • 9. Interfacing With High level Language progaraming 9 Machine Independent:- The program written in High Level Language is machine independent. It means that a program written or compiled on one type of Computer can be executed (run) on another different type of Computer that has different architecture. For Example:- A program written on a Computer using Intel Processor can be run on computer having Motorola Processor (but with a little Modification). Source code is understandable by another programmer:- The instructions of the program written in high level language are like English language statements. These are written according to the standard syntax of the language. Therefore, a computer programmer can easily understand a program written by another programmer
  • 10. Interfacing With High level Language progaraming 10 Advantages of high-level languages - better portability (program runs on many CPUs) - natural structures for expressing flow of control - much better support for software maintenance - much better support for software reuse
  • 11. Interfacing With High level Language progaraming 11 Understanding interface-based programming  Implementing an interface Obtaining interface references  Interface hierarchies  Multiple base interfaces Interfaces
  • 12. Interfacing With High level Language progaraming 12 C# only supports single inheritance, the interface-based protocol allows a given type to support numerous behaviors, while avoiding the issues that arise when deriving from multiple base classes (as in C++). Interface-Based Programming
  • 13. Interfacing With High level Language progaraming 13 Interface-Based Programming In COM , the only way a client can communicate with a COM component is via an interface pointer (not a direct object reference). An interface is a description of the actions that an object can do... for example when you flip a light switch, the light goes on, you don't care how, just that it does.
  • 14. Interfacing With High level Language progaraming 14 Implementing an Interface Declare a class that implements an interface, you include an implements clause in the class declaration. Your class can implement more than one interface WHAT IS interface in Java? An interface is a reference type in Java, it is similar to class, it is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. Along with abstract methods an interface may also contain constants, default methods, static methods, and nested types.
  • 15. Interfacing With High level Language progaraming 15 Interfaces in Object Oriented Programming Languages An interface is a programming structure/syntax that allows the computer to enforce certain properties on an object (class). For example, say we have a car class and a Bus class and a Bike class. Each of these three classes should have a start engine() action. How the "engine is started" for each vehicle is left to each particular class, but the fact that they must have a start engine action is the domain of the interface.
  • 16. Interfacing With High level Language progaraming 16 Explicit Interface Implementation If a class implements two interfaces that contain a member with the same signature, then implementing that member on the class will cause both interfaces to use that member as their implementation.
  • 17. Interfacing With High level Language progaraming 17
  • 18. Interfacing With High level Language programming 18 Interface Hierarchies // The base interface public interface IDraw { void Draw(); } public interface IDraw2 : IDraw { void IDrawToPrinter(); } public interface IDraw3 : IDraw2 { void DrawToMetaFile(); }
  • 19. Interfacing With High level Language progaraming 19 Identical Interfaces // Three interfaces each defining identical methods public interface IDraw { void Draw(); } public interface IDraw3D { void Draw(); } public interface IDrawToPrinter { void Draw(); }
  • 20. Interfacing With High level Language progaraming 20 Multiple Base Interfaces In C# it is completely permissible to create an interface that derives from multiple base interfaces . public interface Vehicle { void Drive(); } public interface rode { void Drive(); } public interface Car : Vehicle, rode { void showDrives(); }
  • 21. Interfacing With High level Language progaraming 21 Interfaces in Object Oriented Programming Languages An interface is a programming structure/syntax that allows the computer to enforce certain properties on an object (class). For example, say we have a car class and a Bus class and a Bike class. Each of these three classes should have a start engine() action. How the "engine is started" for each vehicle is left to each particular class, but the fact that they must have a start engine action is the domain of the interface.
  • 22. Interfacing With High level Language progaraming 22 Implementing an Interface To tell the computer that a new class that you are writing will fulfill all the requirements (implement all the functions) of an interface, you must use the keyword implements in the same location where you can use the keyword extends.
  • 23. Interfacing With High level Language progaraming 23 Thank You