Suche senden
Hochladen
Java chapter 3 - OOPs concepts
•
0 gefällt mir
•
2,391 views
M
Mukesh Tekwani
Folgen
Java OOPs concepts
Weniger lesen
Mehr lesen
Bildung
Technologie
Melden
Teilen
Melden
Teilen
1 von 3
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Java chapter 3
Java chapter 3
Mukesh Tekwani
Java chapter 1
Java chapter 1
Mukesh Tekwani
Java swing 1
Java swing 1
Mukesh Tekwani
Notes of java first unit
Notes of java first unit
gowher172236
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
suthi
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
suthi
Java notes(OOP) jkuat IT esection
Java notes(OOP) jkuat IT esection
Arc Keepers Solutions
Basics of Java
Basics of Java
Prarabdh Garg
Empfohlen
Java chapter 3
Java chapter 3
Mukesh Tekwani
Java chapter 1
Java chapter 1
Mukesh Tekwani
Java swing 1
Java swing 1
Mukesh Tekwani
Notes of java first unit
Notes of java first unit
gowher172236
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
OBJECT ORIENTED PROGRAMMING LANGUAGE - SHORT NOTES
suthi
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
suthi
Java notes(OOP) jkuat IT esection
Java notes(OOP) jkuat IT esection
Arc Keepers Solutions
Basics of Java
Basics of Java
Prarabdh Garg
Jdbc 1
Jdbc 1
Mukesh Tekwani
Object Oriented Programming -- Dr Robert Harle
Object Oriented Programming -- Dr Robert Harle
suthi
Java chapter 5
Java chapter 5
Mukesh Tekwani
Tcs NQTExam technical questions
Tcs NQTExam technical questions
AniketBhandare2
Java programming language
Java programming language
SubhashKumar329
C# Unit 2 notes
C# Unit 2 notes
Sudarshan Dhondaley
College Project - Java Disassembler - Description
College Project - Java Disassembler - Description
Ganesh Samarthyam
Java 3 rd sem. 2012 aug.ASSIGNMENT
Java 3 rd sem. 2012 aug.ASSIGNMENT
mayank's it solution pvt.ltd
Java for C++ programers
Java for C++ programers
Salahaddin University-Erbil
C# lecture 1: Introduction to Dot Net Framework
C# lecture 1: Introduction to Dot Net Framework
Dr.Neeraj Kumar Pandey
Java
Java
Sneha Mudraje
Dot net introduction
Dot net introduction
Dr.Neeraj Kumar Pandey
Bt0074 oops with java
Bt0074 oops with java
Techglyphs
Technical Interview
Technical Interview
prashant patel
Advanced Java Topics
Advanced Java Topics
Salahaddin University-Erbil
SAP ABAP using OOPS - JH Softech
SAP ABAP using OOPS - JH Softech
Vikram P Madduri
Object Oriented Programming Lab Manual
Object Oriented Programming Lab Manual
Abdul Hannan
java
java
SubhashKumar329
Qb it1301
Qb it1301
ArthyR3
Oops in vb
Oops in vb
Dalwin INDIA
Html tables examples
Html tables examples
Mukesh Tekwani
Java chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and use
Mukesh Tekwani
Weitere ähnliche Inhalte
Was ist angesagt?
Jdbc 1
Jdbc 1
Mukesh Tekwani
Object Oriented Programming -- Dr Robert Harle
Object Oriented Programming -- Dr Robert Harle
suthi
Java chapter 5
Java chapter 5
Mukesh Tekwani
Tcs NQTExam technical questions
Tcs NQTExam technical questions
AniketBhandare2
Java programming language
Java programming language
SubhashKumar329
C# Unit 2 notes
C# Unit 2 notes
Sudarshan Dhondaley
College Project - Java Disassembler - Description
College Project - Java Disassembler - Description
Ganesh Samarthyam
Java 3 rd sem. 2012 aug.ASSIGNMENT
Java 3 rd sem. 2012 aug.ASSIGNMENT
mayank's it solution pvt.ltd
Java for C++ programers
Java for C++ programers
Salahaddin University-Erbil
C# lecture 1: Introduction to Dot Net Framework
C# lecture 1: Introduction to Dot Net Framework
Dr.Neeraj Kumar Pandey
Java
Java
Sneha Mudraje
Dot net introduction
Dot net introduction
Dr.Neeraj Kumar Pandey
Bt0074 oops with java
Bt0074 oops with java
Techglyphs
Technical Interview
Technical Interview
prashant patel
Advanced Java Topics
Advanced Java Topics
Salahaddin University-Erbil
SAP ABAP using OOPS - JH Softech
SAP ABAP using OOPS - JH Softech
Vikram P Madduri
Object Oriented Programming Lab Manual
Object Oriented Programming Lab Manual
Abdul Hannan
java
java
SubhashKumar329
Qb it1301
Qb it1301
ArthyR3
Oops in vb
Oops in vb
Dalwin INDIA
Was ist angesagt?
(20)
Jdbc 1
Jdbc 1
Object Oriented Programming -- Dr Robert Harle
Object Oriented Programming -- Dr Robert Harle
Java chapter 5
Java chapter 5
Tcs NQTExam technical questions
Tcs NQTExam technical questions
Java programming language
Java programming language
C# Unit 2 notes
C# Unit 2 notes
College Project - Java Disassembler - Description
College Project - Java Disassembler - Description
Java 3 rd sem. 2012 aug.ASSIGNMENT
Java 3 rd sem. 2012 aug.ASSIGNMENT
Java for C++ programers
Java for C++ programers
C# lecture 1: Introduction to Dot Net Framework
C# lecture 1: Introduction to Dot Net Framework
Java
Java
Dot net introduction
Dot net introduction
Bt0074 oops with java
Bt0074 oops with java
Technical Interview
Technical Interview
Advanced Java Topics
Advanced Java Topics
SAP ABAP using OOPS - JH Softech
SAP ABAP using OOPS - JH Softech
Object Oriented Programming Lab Manual
Object Oriented Programming Lab Manual
java
java
Qb it1301
Qb it1301
Oops in vb
Oops in vb
Andere mochten auch
Html tables examples
Html tables examples
Mukesh Tekwani
Java chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and use
Mukesh Tekwani
Python - Regular Expressions
Python - Regular Expressions
Mukesh Tekwani
Java 1-contd
Java 1-contd
Mukesh Tekwani
Html graphics
Html graphics
Mukesh Tekwani
Digital signal and image processing FAQ
Digital signal and image processing FAQ
Mukesh Tekwani
Data Link Layer
Data Link Layer
Mukesh Tekwani
Python reading and writing files
Python reading and writing files
Mukesh Tekwani
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems Programming
Mukesh Tekwani
Java misc1
Java misc1
Mukesh Tekwani
Data communications ch 1
Data communications ch 1
Mukesh Tekwani
Chap 3 data and signals
Chap 3 data and signals
Mukesh Tekwani
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
Wayne Jones Jnr
Introduction to systems programming
Introduction to systems programming
Mukesh Tekwani
Andere mochten auch
(14)
Html tables examples
Html tables examples
Java chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and use
Python - Regular Expressions
Python - Regular Expressions
Java 1-contd
Java 1-contd
Html graphics
Html graphics
Digital signal and image processing FAQ
Digital signal and image processing FAQ
Data Link Layer
Data Link Layer
Python reading and writing files
Python reading and writing files
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems Programming
Java misc1
Java misc1
Data communications ch 1
Data communications ch 1
Chap 3 data and signals
Chap 3 data and signals
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
Introduction to systems programming
Introduction to systems programming
Ähnlich wie Java chapter 3 - OOPs concepts
Class notes(week 2) on basic concepts of oop-2
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
Class notes(week 2) on basic concepts of oop-2
Class notes(week 2) on basic concepts of oop-2
Kuntal Bhowmick
Chapter1 introduction
Chapter1 introduction
Jeevan Acharya
Unit1 jaava
Unit1 jaava
mrecedu
OOPS_Unit_1
OOPS_Unit_1
Shipra Swati
Chapter 1-Note.docx
Chapter 1-Note.docx
TigistTilahun1
Elements of Java Language
Elements of Java Language
Hitesh-Java
Session 02 - Elements of Java Language
Session 02 - Elements of Java Language
PawanMM
FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
AnkurSingh340457
POP vs OOP Introduction
POP vs OOP Introduction
Hashni T
INTRODUCTION TO JAVA
INTRODUCTION TO JAVA
RAMALINGHAM KRISHNAMOORTHY
M.c.a. (sem iv)- java programming
M.c.a. (sem iv)- java programming
Praveen Chowdary
Object-Oriented Programming in Java.pdf
Object-Oriented Programming in Java.pdf
Bharath Choudhary
Java notes jkuat it
Java notes jkuat it
Arc Keepers Solutions
Fundamentals of JAVA
Fundamentals of JAVA
Swapnika Godbole
Chapter 1- Introduction.ppt
Chapter 1- Introduction.ppt
TigistTilahun1
Java_presesntation.ppt
Java_presesntation.ppt
VGaneshKarthikeyan
MCA NOTES.pdf
MCA NOTES.pdf
RAJASEKHARV10
Introduction to object oriented language
Introduction to object oriented language
farhan amjad
Object Oriented Programming Lecture Notes
Object Oriented Programming Lecture Notes
FellowBuddy.com
Ähnlich wie Java chapter 3 - OOPs concepts
(20)
Class notes(week 2) on basic concepts of oop-2
Class notes(week 2) on basic concepts of oop-2
Class notes(week 2) on basic concepts of oop-2
Class notes(week 2) on basic concepts of oop-2
Chapter1 introduction
Chapter1 introduction
Unit1 jaava
Unit1 jaava
OOPS_Unit_1
OOPS_Unit_1
Chapter 1-Note.docx
Chapter 1-Note.docx
Elements of Java Language
Elements of Java Language
Session 02 - Elements of Java Language
Session 02 - Elements of Java Language
FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
FAL(2022-23)_CSE0206_ETH_AP2022232000455_Reference_Material_I_16-Aug-2022_Mod...
POP vs OOP Introduction
POP vs OOP Introduction
INTRODUCTION TO JAVA
INTRODUCTION TO JAVA
M.c.a. (sem iv)- java programming
M.c.a. (sem iv)- java programming
Object-Oriented Programming in Java.pdf
Object-Oriented Programming in Java.pdf
Java notes jkuat it
Java notes jkuat it
Fundamentals of JAVA
Fundamentals of JAVA
Chapter 1- Introduction.ppt
Chapter 1- Introduction.ppt
Java_presesntation.ppt
Java_presesntation.ppt
MCA NOTES.pdf
MCA NOTES.pdf
Introduction to object oriented language
Introduction to object oriented language
Object Oriented Programming Lecture Notes
Object Oriented Programming Lecture Notes
Mehr von Mukesh Tekwani
Computer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube Channel
Mukesh Tekwani
The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdf
Mukesh Tekwani
Circular motion
Circular motion
Mukesh Tekwani
Gravitation
Gravitation
Mukesh Tekwani
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics - Physics
Mukesh Tekwani
Hexadecimal to binary conversion
Hexadecimal to binary conversion
Mukesh Tekwani
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion
Mukesh Tekwani
Hexadecimal to octal conversion
Hexadecimal to octal conversion
Mukesh Tekwani
Gray code to binary conversion
Gray code to binary conversion
Mukesh Tekwani
What is Gray Code?
What is Gray Code?
Mukesh Tekwani
Decimal to Binary conversion
Decimal to Binary conversion
Mukesh Tekwani
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21
Mukesh Tekwani
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prism
Mukesh Tekwani
Refraction of light at a plane surface
Refraction of light at a plane surface
Mukesh Tekwani
Spherical mirrors
Spherical mirrors
Mukesh Tekwani
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atom
Mukesh Tekwani
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lenses
Mukesh Tekwani
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
Mukesh Tekwani
Cyber Laws
Cyber Laws
Mukesh Tekwani
XML
XML
Mukesh Tekwani
Mehr von Mukesh Tekwani
(20)
Computer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube Channel
The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdf
Circular motion
Circular motion
Gravitation
Gravitation
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics - Physics
Hexadecimal to binary conversion
Hexadecimal to binary conversion
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion
Hexadecimal to octal conversion
Hexadecimal to octal conversion
Gray code to binary conversion
Gray code to binary conversion
What is Gray Code?
What is Gray Code?
Decimal to Binary conversion
Decimal to Binary conversion
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prism
Refraction of light at a plane surface
Refraction of light at a plane surface
Spherical mirrors
Spherical mirrors
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atom
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lenses
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
Cyber Laws
Cyber Laws
XML
XML
Kürzlich hochgeladen
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
David Douglas School District
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology ( Production , Purification , and Application )
Sakshi Ghasle
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
National Information Standards Organization (NISO)
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
Thiyagu K
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
FatimaKhan178732
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
pboyjonauth
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
National Information Standards Organization (NISO)
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
iammrhaywood
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
Thiyagu K
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Sarwono Sutikno, Dr.Eng.,CISA,CISSP,CISM,CSX-F
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
nomboosow
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
Celine George
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
misteraugie
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Marc Dusseiller Dusjagr
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
Maestría en Comunicación Digital Interactiva - UNR
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
eniolaolutunde
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
GeoBlogs
Kürzlich hochgeladen
(20)
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology ( Production , Purification , and Application )
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
Java chapter 3 - OOPs concepts
1.
Generated by Foxit
PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only. 3. OBJECT-ORIENTED PROGRAMMING CONCEPTS Software objects are conceptually similar to real-world objects: they too consist of state and related behavior. An object stores its state in fields (variables in some programming languages). An object also has methods (functions in some programming languages). Methods operate on an object's internal state and serve as the primary mechanism for objectto-object communication. Hiding internal state and requiring all interaction to be performed through an object's methods is known as data encapsulation — a fundamental principle of object-oriented programming. What are the advantages of bundling code into objects? 1. Modularity:- The source code for an object can be written and maintained independently of the source code for other objects. Once created, an object can be easily reused. 2. Information-hiding: By interacting only with an object's methods, the details of its internal implementation remain hidden from the outside world. 3. Code re-use: If an object already exists (perhaps written by another software developer), you can use that object in your program. This allows specialists to implement/test/debug complex, task-specific objects, which you can then trust to run in your own code. 4. Pluggability and debugging ease: If a particular object turns out to be problematic, you can simply remove it from your application and plug in a different object as its replacement. This is analogous to fixing mechanical problems in the real world. If a bolt breaks, you replace it, not the entire machine. What is a Class? A class is the blueprint from which individual objects are created. What is Inheritance? Different kinds of objects often have a certain amount in common with each other. Objectoriented programming allows classes to inherit commonly used state and behavior from other classes. In the Java programming language, each class is allowed to have one direct superclass, and each superclass has the potential for an unlimited number of subclasses. The syntax for creating a subclass is simple. At the beginning of your class declaration, use the extends keyword, followed by the name of the class to inherit from: class MountainBike extends Bicycle { // new fields and methods defining a mountain bike would go here } This gives MountainBike all the same fields and methods as Bicycle, yet allows its code to focus exclusively on the features that make it unique. This makes code for your subclasses easy to read. However, you must take care to properly document the state and behavior that each superclass defines, since that code will not appear in the source file of each subclass. Java - Chapter 3 Page 1 of 3
2.
Generated by Foxit
PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only. The Java Programming Language As you've already learned, objects define their interaction with the outside world through the methods that they expose. Methods form the object's interface with the outside world; the buttons on the front of your television set, for example, are the interface between you and the electrical wiring on the other side of its plastic casing. You press the "power" button to turn the television on and off. In its most common form, an interface is a group of related methods with empty bodies. What Is a Package? A package is a namespace that organizes a set of related classes and interfaces. Conceptually you can think of packages as being similar to different folders on your computer. You might keep HTML pages in one folder, images in another, and scripts or applications in yet another. Because software written in the Java programming language can be composed of hundreds or thousands of individual classes, it makes sense to keep things organized by placing related classes and interfaces into packages. The Java platform provides an enormous class library (a set of packages) suitable for use in your own applications. This library is known as the "Application Programming Interface", or "API" for short. Its packages represent the tasks most commonly associated with generalpurpose programming. For example, a String object contains state and behavior for character strings; a File object allows a programmer to easily create, delete, inspect, compare, or modify a file on the filesystem; a Socket object allows for the creation and use of network sockets; various GUI objects control buttons and checkboxes and anything else related to graphical user interfaces. There are literally thousands of classes to choose from. This allows you, the programmer, to focus on the design of your particular application, rather than the infrastructure required to make it work. Questions and Exercises: Questions 1. 2. 3. 4. 5. 6. 7. 8. 9. Real-world objects contain ___ and ___. A software object's state is stored in ___. A software object's behavior is exposed through ___. Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data ___. A blueprint for a software object is called a ___. Common behavior can be defined in a ___ and inherited into a ___ using the ___ keyword. A collection of methods with no implementation is called an ___. A namespace that organizes classes and interfaces by functionality is called a ___. The term API stands for ___ Answers to Questions 1. state and behavior. 2. fields. 3. methods. Page 2 of 3 Java - Chapter 3
3.
Generated by Foxit
PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only. The Java Programming Language 4. 5. 6. 7. 8. 9. encapsulation. class. superclass, subclass, extends. interface. package. Application Programming Interface. Prof. Mukesh N Tekwani [mukeshnt@yahoo.com] Page 3 of 3
Jetzt herunterladen