IAT1-QB - Answer Key
IAT1-QB - Answer Key
Public: Public, means all the class members declared under public will be
available to everyone. The data members and member functions declared
public can be accessed by other classes too.
What is a class?
A class is a group of objects that share common properties and behavior. For
1 1 2
example, we can consider a car as a class that has characteristics like steering wheels,
seats, brakes, etc.
State Data hiding concept.
Data hiding is a process of combining data and functions into a single unit.
private, public & protected are three types of protection/ access specifiers available within a 1 1 2
class. Usually, the data within a class is private & the functions are public. The data is hidden,
so that it will be safe from accidental manipulation
Examine the advantages of operator overloading?
Advantages:
It will act differently depending on the operands provided. Its called
extensibility.
3. It is not limited to work only with primitive Data Type. 1 1 2
By using this overloading we can easily acces the objects to perform any
operations.