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?