Reading Materials Design and implement a set of classes that define various types of reading material: books, novels, magazines, technical journals, textbooks, and so on. Include data values that describe various attributes of the material, such as the number of pages and the names of the primary characters. Include methods that are named appropriately for each class and that print an appropriate message. Create a main driver class to instantiate and exercise several of the classes.

Answers

Answer 1

Answer:

Answered below

Explanation:

//The designs are implemented in Kotlin.

//Book class

class Book (val title: String,

val type: String,

val numberOfPages: Int,

val author: String ,

val yearPublished: Int ) {

fun bookDescription( ){

print("Book title is $title. Written

by $author and published

in $yearPublished" )

}

}

//Driver class

class Main {

fun main( ) {

val novel: Book = Book("Animal Farm", "novel", 200, "Orwell", 1990 )

println(novel.title)

println(novel.author)

val description = novel.bookDescription( )

println(description)

val magazine: Book = Book("Forbes", "magazine", 50, "Michael", 1995)

}

}


Related Questions

What tab on the Ribbon would you select to create a Photo Album?
Design
Animation
Home
Insert

Answers

Answer:

It would be the last one Insert

Explanation:

I just know

All of the following are data providers included with .NET for accessing and manipulating data in databases, EXCEPT ____. Group of answer choices

Answers

Complete Question:

All of the following are data providers included with .NET for accessing and manipulating data in databases, EXCEPT ____.

Group of answer choices.

A. OLE DB

B. ODBC

C. SQL Server

D. Access

Answer:

D. Access

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.

In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores.

This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. This records are stored and communicated to other data when required or needed.

Basically, when a database management system (DBMS) receives data update requests from application programs, it simply instructs the operating system installed on a server to provide the requested data or informations.

Some examples of data providers included with .NET for accessing and manipulating data in databases are;

A. OLE DB: this is an acronym for Object Linking and Embedding Database. OLE DB was designed and developed by Microsoft corporation and it comprises of various application programming interfaces (APIs) used for data access.

B. ODBC: it is an acronym for Open Database Connectivity and it was designed and developed by Microsoft corporation used for data access through structured query language (SQL).

C. SQL Server: it is a domain-specific language server designed and developed for managing the various data saved in a relational or structured database.

Define the summary function, which takes as arguments a database (dict) and a dict of current stock prices. It returns a dictionary (dict or defaultdict) whose keys are client names (str) whose associated values are 2-tuples: the first index is a dictionary (dict or defaultdict) whose keys are stock names (str) and values are the number of shares (int) the client owns. The second index is the amount of money (int) the portfolio is worth (the sum of the number of shares of each stock multiplied by its current price). Assume each client starts with no shares of any stocks, and if a client owns 0 shares of a stock, the stock should not appear in the client’s dictionary. Recall positive numbers are a purchase of the stock and negative numbers a sale of the stock. E.g., if db is the database above, calling summary(db, {'IBM':65, 'Intel':60, 'Dell':55, 'Apple':70}) would return

Answers

Hi :). (_define Your question to answer) ,
Other Questions
The side length of an equilateral triangle is 6x - 12. Write an expression for the perimeter of the triangle in simplest form. sheila has a total of $20 to spend at the fall fair. If the armband for rides cost $12.50, what is the most she can spend on treats? write and solve an inequality When trade barriers began to fall, what was the motivation for much of the foreign direct investment by non-U.S. firms please help me on these two questions help me ill give brainliest Do you use Edenuity? if so do you like it and what is your favirot part and your least favirot part about it? 14 pts btw 2 pointsA student saw the Moon rise at 6:20 a.m. on Monday. If he wants to seethe Moon rise again on Tuesday, vhat time should he look in the sky?(Markthe one best answer.)About 6:20 amAbout 6:20pmAbout 5:30 amAbout 7:10am what is an equation of the line that passes through the points 0,-1 and 6,1 put answer in fully reduced form True or False: Sand looks and feels the same wherever you go. 8. Teenagers are most likely to use what form of irony? a. verbal irony b. situational irony c. dramatic irony d. all of the above Plz help! Why is the case of Marbury v. Madison significant?Select one:a. It was the last time that the U.S. Supreme Court ruled a law unconstitutional.b. It was the case that ended segregation in the United States.c. It was the case that started segregation in the United States.d. It was the first time that the U.S. Supreme Court ruled a law unconstitutional. What is the slope of a line perpendicular to the line whose equation is x-y=6 What is the answer anyone quick???? Why is meiosis important for organisms?It creates gametes and allows for genetic variation among organisms.It produces genetically identical cells.0 It provides a means of asexual reproduction.O It allows for cell and tissue repair Round 4.574 to the nearest tenth i don't know the answer pls tell me the answer IF YOUR VEHICLE BREAKS DOWN, YOU SHOULD? Yesterday I ran 9.6 miles at an average speed of 0.4 miles per 5 minutes. How long did it take me to run the 9.6 miles? I WILL GIVE BRAINLIEST!!!!! a recipe calls for 12 1/8 cups of sugar. I need to make this 5 times. How much sugar will I need? In a particular spreadsheet, the data in each cell is password protected. When cells are selected, the formula is visiblein the formula bar. Which is true?O The cells are locked and hidden.The cells are locked and unhidden.The cells are unlocked and hidden.O The cells are unlocked and unhidden.