Académique Documents
Professionnel Documents
Culture Documents
When more than one function is created with the same name, but different is of there
arguments.
In other words, function names can be overloaded. A function may also have the same
name as an attribute. In the case that there is an ambiguity between a function on a
complex type and an attribute of the complex type, the attribute will always be used.
What Is OOPS
OOPs is an Object Oriented Programming language, which is the extension of Procedure
Oriented Programming language. OOPS reduce the code of the Program because of the
extensive feature of Polymorphism. OOPS have many properties such as Data-Hiding,
Inheritance, Data Abstraction, Data Encapsulation and many more Everything in the
world is an object. The type of the object may vary. In OOPS, we get the power to create
objects of our own, as & when required.
What is Class
A group of objects that share a common definition and that therefore share common
properties, operations, and behavior. A user-defined type that is defined with the class-
key 'class,' 'struct,' or 'union.' Objects of a class type consist of zero or more members and
base class objects. Classes can be defined hierarchically, allowing one class to be an
expansion of another, and classes can restrict access to their members.
What is Constructor
When we create instance of class a special method of that class, called that is constructor.
Similarly, when the class is destroyed, the destructor method is called. These are general
terms and usually not the actual member names in most object-oriented languages. It is
initialized using the keyword New, and is destroyed using the keyword Finalize.