Question

Hi could you guys help me with this 3 questions tho and yes I'll rate you...

Hi could you guys help me with this 3 questions tho and yes I'll rate you up thank you!

5. A C++ class is most similar to a(n)

a. inline function

b. pointer

c. library function

d. structure

e. reference





6. A __________ is a member function that is automatically called when a class object is __________.

a. constructor, created

b. destructor, created

c. static function, deallocated

d. utility function, declared

e. None of these



7. Which is the base class in the following statement?

class Car : public Vehicle

a. Car

b. Vehicle

c. public

d. class

e. None of these

0 0
Add a comment Improve this question Transcribed image text
Answer #1
5)  d.  structure
6)  a.  constructor, created
7)  b.  Vehicle

Add a comment
Know the answer?
Add Answer to:
Hi could you guys help me with this 3 questions tho and yes I'll rate you...
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
  • Hi could you guys help me with this one! thank you and yes I'll rate you...

    Hi could you guys help me with this one! thank you and yes I'll rate you up! thank you Design a class Contact with the data and functionality for one made up contact person ( Don't use actual contact). As data it should store a name, email, and phone. The functions should include getter (accessor) and setter (modifier) functions for each of these data items. Write a small main function that initializes an array of size 10 with: 3 Contact...

  • Hi could you guys help me with this one and yes I'll rate you up thank...

    Hi could you guys help me with this one and yes I'll rate you up thank you! this is for c++ : ) Design a stack in C++ that in addition to push, pop, and top functions, also has a min function that returns the minimum element in the entire stack. The stack can contain the minimum element in the top. The purpose of having a min function is for runtime purposes, such that the minimum element can be retrieved...

  • Hi all, I need help to do a project based on C++ smart pointers. I have...

    Hi all, I need help to do a project based on C++ smart pointers. I have to implement the class template my_unique_ptr which is a pointer management class template. Also, it's required to implement the following public methods: a. Default constructor that initializes the object to point to nullptr. b. Constructor that takes a pointer Type * as a parameter and sets the object to point there. We say that the newly created object takes ownership of the pointed memory....

  • Hi could you guys help me with this one and yes I'll rate you up after...

    Hi could you guys help me with this one and yes I'll rate you up after thank youu ^^ Suppose a firm is currently producing 900 computers per week and charging a price of $1,200 per computer. a. Show how the firm will respond to a negative demand shock if prices are flexible b. Generalizing from the computer market specifically to the economy as a whole, what will happen when this negative demand shock occurs across the economy's many markets?...

  • can you guys please help me with these questions thank you 9.Given a Double Linked-List that...

    can you guys please help me with these questions thank you 9.Given a Double Linked-List that contains the values in order: 1,2,3,4,5; and the following class declarations: class List private: Node* head; public: PrintBackwards (); class Node{ friend class List; private: int value; Node* next; Node* prev; Write the algorithm PrintBackwards that prints the whole list backwards. So your functionshould output: “ 5,4,3,2,1" Extra Credit if you instead implement the algorithm for a single linked-list (i.e. only using the Node*...

  • 12. Consider C++ class. Which one of the following choices is NOT correct? A. Class instances...

    12. Consider C++ class. Which one of the following choices is NOT correct? A. Class instances can be static, stack dynamic, or heap dynamic. B. If static or stack dynamic, they are referenced directly with value variables. C. If stack dynamic, they are referenced through pointers. D. Stack dynamic instances of classes are always created by the elaboration of an object declaration. E. The lifetime of such a class instance ends when the end of the scope of its declaration...

  • C++ Could you check my code, it work but professor said that there are some mistakes(check...

    C++ Could you check my code, it work but professor said that there are some mistakes(check virtual functions, prin() and others, according assignment) . Assignment: My code: #include<iostream> #include<string> using namespace std; class BasicShape { //Abstract base class protected: double area; private:    string name; public: BasicShape(double a, string n) { area=a; name=n; } void virtual calcArea()=0;//Pure Virtual Function virtual void print() { cout<<"Area of "<<getName()<<" is: "<<area<<"\n"; } string getName(){    return name; } }; class Circle : public...

  • Hi I have 4 problems below I need done ASAP, if you could upload them one...

    Hi I have 4 problems below I need done ASAP, if you could upload them one by one by order you finish them instead of all at once that would be appreciated, I need this done in basic c++ code, all of the body structure are below I just need codes to be implemented for the codes to give the write outputs, Thank you. Q1. Update the given code 1 to implement the following problem: Create a class animal Set...

  • Program Purpose In this program you will demonstrate your knowledge in programming OOP concepts, such as classes, encapsulation, and procedural programming concepts such as lınked lists, dynamic me...

    Program Purpose In this program you will demonstrate your knowledge in programming OOP concepts, such as classes, encapsulation, and procedural programming concepts such as lınked lists, dynamic memory allocation, pointers, recursion, and debugging Mandatory Instructions Develop a C++ object oriented solution to the Towers of Hanoi puzzle. Your solution will involve designing two classes one to represent individual Disk and another to represent the TowersOfHanoi game. TowersOfHanoi class will implement the game with three linked lists representing disks on each...

  • Hi guys, can you help me with this question, please? thanks. How does regular exercise contribute...

    Hi guys, can you help me with this question, please? thanks. How does regular exercise contribute to reducing the risk of type 2 diabetes? a. enhances the action of insulin b. increases triglyceride levels c. decreases the cellular uptake of blood glucoso d. increases LDL cholesterol

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