Answer:
For 1), you should also add that methods in C++ are called member functions. Thus, the difference between functions and methods in this context is analogous to the difference between functions and member functions in C++. Furthermore, languages like Java only have methods. In this case, functions would be analogous to static methods and methods would have the same meaning. For 2), you should add that a method is able to operate on the private instance (member) data declared as part of the class. Any code can access public instance data.
A function is a mathematical construct. I would say all methods are functions but not all functions are methods
Explanation:
Answer:
The correct option is;
They could not match the data with the observations
Explanation:
Ptolemy proposed the geocentric model based on the observation that the from there are equal number of above and below the horizons at any given time, which didn't match the data observed
Kepler believed the Sun was the focus of Earth's elliptical orbit due to disparities between data in Tycho Brahe's astronomical records and the geocentric model of the solar system.
Therefore, Ptolemy and Kepler made different observations about the solar system because they could not match the data with the observations.
Answer:
A structure is a user-defined data type available in C that allows to combining data items of different kinds. Structures are used to represent a record. A union is a special data type available in C that allows storing different data types in the same memory location.