Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Assignment:

Q 1. What is OOPS?
A. OPPS stand for object oriented programming. It refers to that
languages that use objects in programming. Object oriented
programming aims to implement
Real world entities like inheritance, hiding, polymorphism etc.
The main aim of oops is to bind together the data and the
functions that operate on them so that no other part of the code can
access that data except that functions.

Q2. What is an Object?


A. It is a basic unit of oops and represent real life entities. An
object is an instance of a class. When a class is define no
memory is allocated but when it is instantized memory is
allocated.

Q3. What is Class?


A. A class is a user defined data type. It consists of data members
and member function, which can be accessed and used by
creating an instance of that class.

Q4. Difference between classes and objects.


A. Classes are used to defined the structure and behaviour of
object, which objects are used to represent specific entities in
an programme. Classes are typically defined once and can be
used multiple objects, while each is a unique class instance.
Q5. What are the components of OOPS.
A. Three main components:
Object, methods and class. Adopting object oriented
programming starts with learning to clearly identify objects and
define their relationships through data modelling and class
designations.

You might also like