write the necessary code in Visual Basicto create a class called library with following members: -lib_name is a string -est_year is an integer _ n_visitors is an integer -sub libAss to assign values for the class variables (values are read in main and sent to the sub libAss). - sub to create a constructor for an object. and deconstructor - sub to print the values of the class variables. Then define 3 objects of type library then Assign values for all three objects Print the variables values for all objects And display the largest est_year for all objects

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 11PE
icon
Related questions
Question
write the necessary code in Visual Basicto create a class called library with following members: -lib_name is a string -est_year is an integer _ n_visitors is an integer -sub libAss to assign values for the class variables (values are read in main and sent to the sub libAss). - sub to create a constructor for an object. and deconstructor - sub to print the values of the class variables. Then define 3 objects of type library then Assign values for all three objects Print the variables values for all objects And display the largest est_year for all objects
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,