Question Get Answer

I have some questions I want to know the answers to<br/><br/><br/>First

Question: If during implementation there are two or more namespaces with the exact same name in different files, how does the compiler handle those.

Second Question: write which of the aspects of object orientated programming and programming in general relate to each of the statements below:

Aspects in question:
Inheritance, Encapsulation, Polymorphism, Abstraction

-Airplane and Pigeon can both fly.
-Car is a vehicle
-A Car has 4 wheels, a steering wheel, a brake, a gas pedal and an Engine. Steering wheel, brake and gas pedal are used by the driver to control the engine and the wheels indirectly.
-A programming teacher's job is to teach programming; it is not important for me if he can dance!
-All Mammals reproduce the same way.
-This printer can print on paper, Envelops and post cards.
-Motorcycle is essentially a bicycle with an engine.
-My weekly schedule is a table with days as columns and time as rows.

Last Question: Explain what modular programming is?
Note all parts in the 1, 2 and 3 are related
1.Without code, explain how you would define all of the information for a C++ class called "Student" and what would be names of the files that you would create.
2.What would be the common code in those files?
3.How would you ensure that the information is compiled only once?

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 C++ Programming tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes