Object-oriented programming is model of programming

Assignment Help Basic Computer Science
Reference no: EM132876979

Object-oriented programming is a model of programming that is often used to create programs that are simple, efficient, and easy to maintain. The way that object-oriented programming achieves this is by breaking a complex problem down into smaller, simpler problems. It uses a hierarchical inheritance approach--meaning that the sub classes (or child classes) of a class can access all methods from the parent class.

A class is utilized as a type of blueprint for objects to be created, and is basically a collection of similar objects. For example, a "Computer" might be considered a class, while it's objects might be 3 different computers: a Lenovo, a Dell, and an Acer. We can declare variables in the class, and then define what attributes that the objects in the class "Computer" will share, such as cost, color, and brand. The "state" of an object is considered to be something that describes an object, such as the three attributes we listed above. The "behavior" of an object is considered to be something that the object "does", such as a computer "running".

Within the class, a main method as well as other methods are created which utilize objects, statements, and commands to achieve a desired result. There must be at least one main method in the program so that the system knows where to begin executing the program. I have attached an example of a small program that creates a class of "Computer1" which declares two variables: cost and brand. I then create an object called "myComputer" which utilizes those variables to show the cost and brand of my computer, and to display the result along with a string as the output.

Reference no: EM132876979

Questions Cloud

Engaged in the change process to initiate a new project : What can we do as managers to ensure that employees are engaged in the change process to initiate a new project?
Explain what deadlock : Explain what a deadlock is and how it happens in the operating system.
Which of the two offers yields the lower price : A retailer is considering the purchase of 100 units of a specific item from either of two suppliers. Which of the two offers yields the lower price
Demonstrate understanding of research relevant to the fields : Demonstrate understanding of key theoretical, research, and practice issues relevant to the fields of public health and health education.
Object-oriented programming is model of programming : Object-oriented programming is a model of programming that is often used to create programs that are simple, efficient, and easy to maintain.
What account is credited by Bergquist Company : Purchase-related transaction - Under a perpetual inventory system, what account is credited by Bergquist Company to record the return
Discuss in detail the salary components and fringe benefits : You have to prepare components of the salary and Fringe benefits. Discuss in detail the salary components and fringe benefits which you want to incorporate.
Discuss the differences between the macro and micro policy : What issues are raised by privatization and competition in healthcare services? Discuss the differences between the macro and micro policy making?
What is value chain analysis : What is value chain analysis? Include the following in your answer:

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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