Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Inheritance (10) Describe the purpose of inheritance in the oo sense), and give an example. Include a description of the notions superclass and subclass. Tell
Inheritance (10) Describe the purpose of inheritance in the oo sense), and give an example. Include a description of the notions superclass and subclass. Tell how inheritance is expressed in Java/CN1 code, and explain the meaning and purpose of the keyword super in Java/CN1. (11) Give examples of the "is-a" and "has-a" relationships, and explain their difference. (12) List three major uses (purposes) of inheritance and give an example of each. (13) Explain what is meant by overriding a method, including how it differs from overloading. (14) Explain what is meant by multiple inheritance, including its advantages and disadvantages (15) Explain the 00 notion of separation of interface from implementation. Describe how this is carried out in Java/CN1, and its relationship to multiple inheritance. (16) Explain what is meant by an abstract class in the general 00 sense. Describe how abstract classes are implemented in Java/CN1 and what constraints exist on such classes and on other related classes. (17) Explain what is meant by an abstract method in the general 00 sense. Describe how abstract methods are implemented in Java/CN1, and what constraints exist on such methods, on the classes which contain them, and on other related classes. Polymorphism and Interfaces (18) Give examples of both predefined CN1 interfaces and user-specified interfaces. (19) Explain what is meant by polymorphism in a programming language. Give examples of the application of polymorphism in a program. (20) Explain the meaning of the term "dynamic (late) binding, and how it applies in Java/CN1. (21) Explain the difference between the apparent type and actual type of an object, and be able to use and explain each of those notions correctly in Java/CN1 code. (22) Explain the difference between an abstract class and an interface in Java/CN1, and how Java/CN1 interfaces provide support for increased polymorphism in a program. Displays and Color (23) Describe how the abstraction "color" is implemented in CN1. Include a description of the notion of the "RGB color cube". (24) Give a general description of the operation of at least two different types of display devices. Include a description of the meaning of the terms "pixel", "raster", "screen resolution", and "frame buffer". (25) Explain what is meant by double buffering in a graphics system and why it is important
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started