- Q How will you develop relationships with vendors in a new city?
- Q What is map message?
- Q What is the process of Esculin hydrolysis ?
- Q Dinesh is seated 7 from the left and satish is seated 12 from the right. when they interchange their positions, dinesh is seated 22nd from the left. How many people are there?
- Q Tell me how do you ensure success when working with a chef and/or a kitchen manager?
- Q Which Sultan Dynasty was the longest reigned :
- Q When to use a sax parser?
- Q What is dirac delta function and its fourier transform and its importance?
- Q Which cics service transaction is used to gain accessibility to cics control tables? mention the one that has the highest priority.?
- Q What is the serialization?
- Q What is clean method?
Answers
A method is a function on some object x that you normally call as x.name(arguments...). Methods are defined as functions inside the class definition:
class C:
def meth (self, arg):
return arg*2 + self.attribute Your Comment
class C:
def meth (self, arg):
return arg*2 + self.attribute Your Comment
- 0
- 0
- New Answer
- Contributors: *,
More computer science engineering Questions..
To what does message protocol refer?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What is operator overloading?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
Explain the isa and hasa class relationships. How would you implement each in a class design?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What is polymorphism?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
When should you use multiple inheritance?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What is the difference between c and c++ ? would you prefer to use one over the other ?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
How is memory allocated/deallocated in c ? how about c++ ?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What do the keyword static and const signify?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What are the differences between a c++ struct and c++ class?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
Compare and contrast c and c++.?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What are class variables?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What are instance variables?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What is uml?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
How does throwing and catching exceptions differ from using setjmp and longjmp?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
In c++ what is a constructor? a destructor?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
When is a template a better solution than a base class?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What is the difference between a shallow copy and a deep copy?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What is a super-class?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What is your reaction to this line of code?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,
What is an instance?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: computer science engineering,