Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
11th Edition
ISBN: 9780134743356
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 1, Problem 5E
Explanation of Solution
Object
- Depending on whether it is
mechanical or electronic watch, there will be different design for power source location, watch casing, hands and watch protection. - The user check out from watch is position of its hands to read time.
- The rest of watch’s functioning is encapsulated within the casing.
- Before time of a watch is read, it must have been constructed from its engineer’s drawings or design plans.
Attributes
- Apart from the ability to read time, it has attributes such as color, constituent material, power source and extra properties such as water resistant, size, its ability to keep track of date and month.
- The watch’s attributes are representing part of its design in its engineering diagrams.
- Every watch will maintain its own attributes.
Behavior
- For a mechanical watch, the behavior or method hides the hand and wheel movement mechanism from the watch.
- Behavior and method are similar terms.
- Behavior house the same way as watch perform its tasks.
Class
- A class is used to embody a set of methods that aid in performing class’s tasks.
- A class can be seen as blueprints and in the case of watch, the engineering drawings or design plan from which watch class is created.
- It will hence contain methods for reading, changing time and so on.
Inheritance
- With inheritance, a new class can be created from the existing class.
- The new class absorbs the characteristics of the existing class.
- Alarm clock may contain general watch characteristics such as hands and timing parameters but at the same time it may have an extra customized alarm device...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
You are probably wearing on your wrist one of the most commontypes of objects—a watch. Discuss how each of the following terms and concepts applies to the notion of a watch: object, attributes, behaviors, class, inheritance (consider, for example, an alarmclock), messages, encapsulation and information hiding.
Java
One of the world’s most common objects is a wrist watch. Discusshow each of the following terms and concepts applies to the notion of awatch: object, attributes, behaviors, class, inheritance (consider, forexample, an alarm clock), modeling, messages, encapsulation, interfaceand information hiding.
Wristwatches are one of the world's most well recognised things. To understand a watch, consider the following terminology and concepts: Modeling, messaging, encapsulation, interface, and information hiding are some examples of these concepts, as are objects, attributes, behaviours, classes, and inheritance.
Chapter 1 Solutions
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Ch. 1 - Computers process data under the control of sets...Ch. 1 - Prob. 1.2SRECh. 1 - Prob. 1.3SRECh. 1 - The programs that translate high-level language...Ch. 1 - Prob. 1.5SRECh. 1 - software is generally feature complete,...Ch. 1 - Prob. 1.7SRECh. 1 - Prob. 2.1SRECh. 1 - The command from the JDK compiles a Java program.Ch. 1 - A Java source code file must end with thefile...
Ch. 1 - When a Java program is compiled, the file produced...Ch. 1 - The file produced by the Java compiler...Ch. 1 - Prob. 3.1SRECh. 1 - Java programmers concentrate on creating, which...Ch. 1 - Prob. 3.3SRECh. 1 - A new class of objects can be created conveniently...Ch. 1 - is a graphical language that allows people who...Ch. 1 - The size, shape, color and weight of an object are...Ch. 1 - Prob. 1.1ECh. 1 - Prob. 1.2ECh. 1 - Prob. 1.3ECh. 1 - Prob. 1.4ECh. 1 - Prob. 1.5ECh. 1 - Prob. 1.6ECh. 1 - Prob. 1.7ECh. 1 - languages are most convenient to the programmer...Ch. 1 - The only language a computer can directly...Ch. 1 - Prob. 1.10ECh. 1 - Theprogramming language is now used to develop...Ch. 1 - initially became widely known as the development...Ch. 1 - Prob. 2.3ECh. 1 - Theprogramming language was developed by Bjarne...Ch. 1 - Java programs normally go through five...Ch. 1 - Prob. 3.2ECh. 1 - Prob. 3.3ECh. 1 - A(n)is a software application that simulates a...Ch. 1 - Thetakes the .class files containing the programs...Ch. 1 - Prob. 3.6ECh. 1 - Explain the two compilation phases of Java...Ch. 1 - Prob. 5ECh. 1 - Prob. 1MDCh. 1 - Prob. 2MDCh. 1 - (Attributes of Hybrid Vehicles) In this chapter...Ch. 1 - Prob. 4MDCh. 1 - Prob. 5MDCh. 1 - Prob. 6MDCh. 1 - Prob. 7MD
Knowledge Booster
Similar questions
- Object-oriented concepts like encapsulation and polymorphism, and object models, are intertwined.arrow_forwardA wristwatch is a common adornment. Consider applying the principles of object, attributes, behaviors, class, inheritance (imagine an alarm clock), modeling, messaging, encapsulation, interface, and information hiding to the notion of a watch.arrow_forwardThank Youarrow_forward
- Create an object-oriented information system for a RESTAURANT. Requires all OOP concepts: With different class 1. Inheritance 2. Polymorphism 3. Encapsulation 4. Abstraction - (includes implementatio of inheritance) Program must: Read and Display, and Write operations (has transactions(shows bill and change), display data) Static only (previous transaction not saved, one time run only) -Terminal only(no GUI, no Database)arrow_forwardInheritance makes it more difficult to design object class tests. Explain.arrow_forwardClass adapters and object adapters each have distinct benefits and drawbacks. Why are these ideas so crucial to our research?arrow_forward
- Design an object oriented program that can be used as a network server for a cyber chatroom, where users can send and receive text messages under nicknames in a chatroom. Draw a class diagram of your design and motivate your design choicesarrow_forwardA wristwatch is a very common item. Discuss how object, attributes, behaviors, class, inheritance (imagine an alarm clock), modeling, messaging, encapsulation, interface, and information hiding apply to the idea of a watch.arrow_forwardObject models, as well as the concepts of encapsulation and polymorphism, are inexorably intertwined.arrow_forward
- Design a object-oriented program using the following: inheritance, this, super, overriding, overloading, scanner, 5 classesarrow_forwardTo define common object behaviour, both abstract classes and interfaces may be utilised.How do you decide whether to use an interface or an abstract class?arrow_forwardListen In an object-oriented design using UML, basic relationships, whereas objects. Blank # 1 Blank # 2 diagrams are used to represent classes and their diagrams are used to represent communication between A/ Aarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education