5.how Many Instances of An Abstract Class Can Be Created-4 Class 1byte 6
5.how Many Instances of An Abstract Class Can Be Created-4 Class 1byte 6
5.how Many Instances of An Abstract Class Can Be Created-4 Class 1byte 6
Constructors-
are generally used for instantiating an object. The task of
constructors is to initialize(assign values) to the data
members of the class when an object of class is created.In
Python the __init__() method is called the constructor and is
always called when an object is created
9.NoSQL databases (aka "not only SQL") are non tabular, and store
data differently than relational tables. NoSQL databases come in a
variety of types based on their data model. The main types are
document, key-value, wide-column, and graph.
A relational table is a table of columns or fields that
describe a listing (or rows) of data, similar to an Acoustic
Campaign database. For example, a relational table
may contain fields such as customer ID, transaction number,
product purchased, product price, sale date, and
purchase location.
11.There are four basic types of SQL joins: inner, left, right,
and full
⁃ Inner Join / Simple Join.
⁃ Left Outer Join / Left Join.
⁃ Right Outer Join / Right Join.
⁃ Full Outer Join.
⁃ Cross Join.
⁃ Self Join.
25.Integer data type: ... Like wise, 4 byte (32 bit) of memory
for 32 bit processor and 8 byte (64 bit) of memory for 64 bit
processor is allocated for int datatype. int (2 byte) can
store values from -32,768 to +32,767. int (4 byte) can store
values from -2,147,483,648 to +2,147,483,647.
Yes, you can call the base class without instantiating it if:
• It is a static method
• The base class is inherited by some other subclass
10. What is inheritance?
There are many reasons why OOPs is mostly preferred, but the most
• Even very big software can be easily written and managed easily using
OOPs.
17. How much memory does a class occupy?
Classes do not consume any memory. They are just a blueprint based
on which objects are created. Now when objects are created, they
consume memory.
methods. But if the class has static methods, then objects don’t need to
be created. You can call the class method directly in this case, using the
class name.
other entity and makes them their own. Inheritance helps to improve and
Let me explain to you with a common example. Let's take three different
vehicles - a car, truck, or bus. These three are entirely different from one
another with their own specific characteristics and behavior. But. in all
three, you will find some common elements, like steering wheel,
accelerator, clutch, brakes, etc. Though these elements are used in
different vehicles, still they have their own features which are common
among all vehicles. This is achieved with inheritance. The car, the truck,
and the bus have all inherited the features like steering wheel,
accelerator, clutch, brakes, etc, and used them as their own. Due to this,
they did not have to create these components from scratch, thereby
also play a very vital role in achieving Encapsulation - one of the major
features of OOPs.
to a halt. The reason for the exception is mainly due to a position in the
program, where the user wants to do something for which the program is
complete body of the function wherever that function is used in the program
source code.
class, and its functionality can be overridden in its derived class. This function
private, or protected data in that same class. If the function is defined outside
Yes, it is possible to call the base method without creating an instance. And
THIS pointer refers to the current object of a class. THIS keyword is used as a
pointer which differentiates between the current object with the global object. It
The default access modifier of a class is Internal and the default access