1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Otrada [13]
2 years ago
12

Qn 1) Use only Python Programming language for the below question.

Computers and Technology
1 answer:
Readme [11.4K]2 years ago
6 0

Using the knowledge of computational language in python we can write definitions of some functions that will be useful to organize the personal information of a person.

<h3>Writing this code in python we have:</h3>

<em>class Address:</em>

<em>      def __init__(self, street, num):</em>

<em>        self.street_name = street</em>

<em>        self.number = num</em>

<em>class CampusAddress(Address):</em>

<em>       def __init__(self,of_num,c_street="Hougang",c_num=77):</em>

<em>        self.office_number=of_num </em>

<em>        Address.__init__(self,c_street,c_num) </em>

<em>sally_addr = CampusAddress('8745 5951') </em>

<em>print(sally_addr.office_number)</em>

<em>print(sally_addr.street_name)</em>

<em>print(sally_addr.number)</em>

<em>print()</em>

<em>my_addr = CampusAddress('1111 1111','streaks',99)</em>

<em>print(my_addr.office_number)</em>

<em>print(my_addr.street_name)</em>

<em>print(my_addr.number)</em>

See more about python at brainly.com/question/23271145

#SPJ1

You might be interested in
Which of the following is the best way to make sure you understand what someone has said?
aivan3 [116]

Answer:

I would choose either paraphrase the info or take notes.

Explanation:

8 0
3 years ago
Read 2 more answers
TRUE or FALSE: CSS is used to style web pages.
nirvana33 [79]

Answer:

true

Explanation:

HTML is the structure and CSS is the design

3 0
3 years ago
How does a layered pattern make use of abstraction and encapsulation?
maxonik [38]

Answer and Explanation:

The ways in which a layered pattern make use of encapsulation and abstraction are as follows:

  • This framework lays its focus mainly on the bundling of related functionalities inside an application into different layer that are vertically stacked over one another.
  • Functionality in between each layer is related by common function or role.
  • Communication in between the layers is clear and exact and is coupled loosely.
  • Providing a layered structure to the application indirectly supports its maintainability and flexibility.

Encapsulation:

Since, features like data type, properties, methods or implementation while designing are not exposed at the boundary of the layer thus No assumptions are required for these features.

Abstraction:

The layered framework abstracts the entire system's view and provides adequate details for better understanding of the roles of each layer individually and the relation that exist between these layers.

7 0
4 years ago
Anyone here play sims 4 and know how to help me with his last exception file?
zysi [14]

Answer:

Explanation:

What game is this

3 0
3 years ago
PLEASE HELP there are TWO ANSWERS
pickupchik [31]

Answer:

Pero un campo cuyo tipo de datos es Número solo puede almacenar datos numéricos. ... Por ejemplo, los valores que se almacenan en un campo Texto solo pueden contener ... Para más información, haga clic en los tipos de datos siguientes. ... Controla la conversión de frases en las versiones asiáticas de Windows.

5 0
3 years ago
Other questions:
  • whats something that u want to do but ur parents wont allow it like having a phone or going to a college ​
    11·2 answers
  • How many service packs did windows 7 have?
    9·1 answer
  • What division monitors the sale and registration of vehicles and vessels within the state?
    15·1 answer
  • In a circular linked list the last node points to the____ node.
    5·1 answer
  • Companies use virtualization to do all of the following except:
    10·1 answer
  • Peter is a data analyst in a financial firm. He maintains a spreadsheet that contains all employee details. Peter wants to analy
    10·1 answer
  • 71 81 77 15 63 96 36 51 77 18 17
    14·1 answer
  • It is a read mostly memory that can be electronically written into any time without arising prior contact
    12·1 answer
  • What is the difference between a crosstab query and a subquery?
    11·2 answers
  • Which of the following commands can be used to display socket information out to the terminal screen
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!