Concepts for object-oriented programming

Assignment Help Basic Computer Science
Reference no: EM132812080

Overview:

In this assignment, you will be analyzing the basic concepts for object-oriented programming, how to create classes that contain attributes and different types of methods.

1. Discuss the rationale behind restricting access to object attributes and requiring class users to only access attributes using methods. Explain how private access restricts outside class users from directly accessing attributes (and methods). In contrast, public access specifies that an outside class may use a method (or attribute) of the class.

2. Describe the benefits of encapsulation and information hiding also called data hiding. As applied to objects, this means that outside objects should not be able to alter an object's attributes but should instead interact with the object via methods.

3. Define the terms instance variable, field, and state. Explain how class methods are shared by all objects of a class.

4. Discuss how a class client, or class user, can use a class that has been written by another programmer.

5. Create a class diagram of one or more classes that would support a simple online library catalog.

6. Write pseudocode class definitions of one or two of the classes created in the previous exercise.

7. When a class contains objects of another class, the relationship is called a whole-part relationship or composition. The relationship created is also called a has-a relationship. Discuss some of the possible issues with composition, such CIS216 - Programming Principles Object-Oriented Programming as the long statement: output sales.getHighestPaidEmployee().getHireDate().getYear().

8. Describe the rules that govern the attributes of a parent class that can be accessed by a child class and the reverse

9. Discuss the advantages of using inheritance and why superclass code is considered more reliable.

10. Research how a derived class can access the constructor of its parent class.

11. Research the topic of multiple inheritance. Describe this concept and explain how it is commonly used in object-oriented programming languages.

12. Create a try-catch block to accept a birth date, entered separately as month, day, and year. Included should be checks for month (1-12), day (28, 29 [if you dare], 30, and 31 days), and year (<= this year).

Reference no: EM132812080

Questions Cloud

Leadership and extensive practice : Organizing and leading software engineering teams requires leadership and extensive practice.
Target measures-probability mining : Target measures, probability mining, and econometric modeling are three concepts that are associated with data mining and business decisions.
Tools for monitoring changes to files and memory : Examine a network and server monitoring solution in detail. Identify the solution's capabilities and benefits.
Demographic and psychographic data elements : Give some examples of demographic and psychographic data elements. Why would a marketer put decoy records on a database?
Concepts for object-oriented programming : You will be analyzing the basic concepts for object-oriented programming, how to create classes that contain attributes and different types of methods.
Discuss explanation of blockchain : Discuss your explanation of Blockchain to include why it has been gaining so much popularity.
Design-development and use of information systems : Discuss each of the different roles that people play in the design, development, and use of information systems.
Database design proposal : Create a proposal that describes the naming and creation of the tables used in the Jestor's database.
Key stroke logging : Keystroke logging often referred to as keylogging or keyboard capturing, is the action of recording (logging) the keys struck on a keyboard,

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What do we mean by economies of scale

What are internal economies of scale? What are external economies of scale? What are the sources of external economies of scale?

  Financial acumen and sarbanes-oxley

Keeping abreast of the financial measures and metrics employed by a company allows employees to better understand its health and position at any given time.

  Well-integrated change control process

Discuss the importance of following a well-integrated change control process on IT projects. What consequences can result from not following these best practices? What types of change control would be appropriate for small IT projects? What types ..

  What does it mean to say a variable is local to a function

What does it mean to say a variable is local to a function? The choices are: 1. Main() can use it whenever it wants to, but no other functions can see or use it.

  Different data types in c programming

What are the different data types in C programming? Can one be converted into another?

  Magnetism and electromagnetism

Discuss the difference between a permanent magnet and an electromagnet.  What are some practical applications of each? Discuss why a conductor and the external field must be perpendicular to each other to have motor action or to generate induced vol..

  Full mesh and partial mesh in ospf configuration

What is the different between full mesh and partial mesh in ospf configuration over frame relay?

  Design a database diagram that allows individuals

Design a database diagram that allows individuals to be assigned membership in one or more groups. Each group can have any number of individuals

  What will your salary be two years from your graduation

Your contract offers you a fixed 4% annual increase compounded 2 times a year. What will your salary be two years from your graduation?

  Advantages and disadvantages of each course of action

Suppose a system employs devices that are each capable of storing a list of 50 CRL entries. How can this design decision lead to security problems?

  What is a copy constructor

What is a copy constructor? When would you use a copy constructor? Can you give an example?

  What are the limitations of dashboards

Explain how executive dashboards can lead to better business insights. What are the limitations of dashboards?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd