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

General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)rishi ram khanal
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer languageSanjeev Patel
 
Stack and its usage in assembly language
Stack and its usage in assembly language Stack and its usage in assembly language
Stack and its usage in assembly language Usman Bin Saad
 
Program control instructions
Program control instructionsProgram control instructions
Program control instructionsDr. Girish GS
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine CodeProject Student
 
bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)Siddhi Viradiya
 
Computer instructions
Computer instructionsComputer instructions
Computer instructionsAnuj Modi
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memoryDeepak John
 

What's hot (20)

General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
 
Presentation1
Presentation1Presentation1
Presentation1
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
Memory mapping
Memory mappingMemory mapping
Memory mapping
 
Stack and its usage in assembly language
Stack and its usage in assembly language Stack and its usage in assembly language
Stack and its usage in assembly language
 
Program control instructions
Program control instructionsProgram control instructions
Program control instructions
 
Register & flags
Register & flagsRegister & flags
Register & flags
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine Code
 
Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction set
 
bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
Cache memory
Cache memoryCache memory
Cache memory
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
Assembly language
Assembly languageAssembly language
Assembly language
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 

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

Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
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
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
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.
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 

Recently uploaded (20)

Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
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
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
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 ...
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 

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