Question

A class can consist of data (attributes/properties) UML diagrams flowcharts (Flowgorithm/Raptor) code (methods)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: A class can consist of DATA (ATTRIBUTES/PROPERTIES) and CODE (METHODS)

Explanation: A class is the basic building block of object oriented programming. It is a type of blueprint for different objects. Blueprint here simply refers the structure of an object, like what are its properties, its attributes, and it also contains functions/methods in which we implement code to access those properties, attributes. In an easy way, a class contains only:

1. data members or simply data such as attributes, properties, etc.

2. and member functions (method) which contain the code to describe the working of the class.

However, we should note that a class does NOT contain flowcharts, UML diagrams because they are just the diagrammatic representations of a class and hence are not related in being the contents of a class. Therfore, only option 1 - data and option 4 - code (methods) are correct.

Thanks!

Add a comment
Know the answer?
Add Answer to:
A class can consist of data (attributes/properties) UML diagrams flowcharts (Flowgorithm/Raptor) code (methods)
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Programming Assignment 6: A Python Class, Attributes, Methods, and Objects Obiectives .Be able to...

    I need some help with programming this assignment. Programming Assignment 6: A Python Class, Attributes, Methods, and Objects Obiectives .Be able to write a Python class Be able to define class attributes Be able to define class methods .Be able to process input from a text file .Be able to write an application using objects The goal of this programming assignment is to develop a simple image processing application. The application will import a class that creates image objects with...

  • Attributes of a class that are available to code outside that class are public so long...

    Attributes of a class that are available to code outside that class are public so long as the methods of the class are not available to code outside the class. True or False?

  • UML Class Diagram with Inheritance Objectives Use UML Correctly indicate inheritance Demonstrate permissions Understand inheritance relationships...

    UML Class Diagram with Inheritance Objectives Use UML Correctly indicate inheritance Demonstrate permissions Understand inheritance relationships Labwork Please read all of the directions carefully. You will create a UML class diagram reflecting the class hierarchy for a fictional program that manages university personnel as constructed according to the graph displayed below. You will need to think about the attributes and behaviors that are unique to each class, and also those attributes and behaviors that are common amongst the subclasses and...

  • Contents? Introduction Existing code & UML UML Code Changes to be made to the program tester_with_mods.cpp...

    Contents? Introduction Existing code & UML UML Code Changes to be made to the program tester_with_mods.cpp Submit Instructions? Introduction The purpose of this assignment is to provide you with experience in working with objects in C++. Existing code & UML You have been provided with a class that describes the products maintained in a company’s inventory. The class maintains the following attributes: Name of attribute Data Type productId string productPrice float Accessor and Mutator methods have been created for these...

  • Draw a UML design class diagram that shows the following information. You are to create class...

    Draw a UML design class diagram that shows the following information. You are to create class attribute and method names and other information using correct syntax. You can include the drawing in this Word document or in an additional PowerPoint file. The domain class is a concrete entity class named House. All attributes are private strings with initial null values. The attribute house identifier has the property of “key.” The other attributes are the builder of the house, the model...

  • Write Java classes CollectableItem and Coin defined by these UML    diagrams . CollectableItem is the...

    Write Java classes CollectableItem and Coin defined by these UML    diagrams . CollectableItem is the base class for the derived class Coin. If you wish, use    IntelliJ to write the constructors, getters, setters, and toString    methods.    +---------------------------------------------------------------+    |                 CollectableItem                               |    +---------------------------------------------------------------+    | - id : int                                                    |    | - itemType : String                                           |    | - price : double                                              |    | - onSale : boolean                                            |    +---------------------------------------------------------------+    | +...

  • Java Code Help! Code this: Calculate statistics. Write a class called Statistics that can calculate a...

    Java Code Help! Code this: Calculate statistics. Write a class called Statistics that can calculate a number of properties about an array of doubles. There should be separate static methods to calculate the min, the max, the mean, the median, the standard deviation (make sure to make use of your mean method to implement this), and the mode. For the mode, you can assume that the data set is not multimodal. This class should not have a main method. Write...

  • python code? 1. Create a class called Person that has 4 attributes, the name, the age,...

    python code? 1. Create a class called Person that has 4 attributes, the name, the age, the weight and the height [5 points] 2. Write 3 methods for this class with the following specifications. a. A constructor for the class which initializes the attributes [2.5 points] b. Displays information about the Person (attributes) [2.5 points] c. Takes a parameter Xage and returns true if the age of the person is older than Xage, false otherwise [5 points] 3. Create another...

  • Overloading Design a UML diagram for a TimeClock class with the following private data members: •...

    Overloading Design a UML diagram for a TimeClock class with the following private data members: • float days • float hours The class should also have the following public member methods: • Constructor with a default that sets the data values to 0 • getDays to return the private data member days • getHours to return the private data member hours • setDays to set the private data member days • setHours to set the private data member hours •...

  • JAVA Write code to define a Customer class, which has id and name attributes of String...

    JAVA Write code to define a Customer class, which has id and name attributes of String data type and points attribute of integer data type, without breaking encapsulation.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT