Click here to Skip to main content
Page 1 of 6
Page Size: 10 · 25 · 50


Tag filtered by:  oops [x]
Article 8 May 2013   license: CPOL
This article is intended to help conceptualize the area of JavaScript Object Oriented Programming by comparing it to the way .NET CLR works.
Answer 9 Apr 2013   license: CPOL
No. And you can easily check it up by writing code and trying to compile it. The indication that a class is abstract with the use of the keyword "abstract" is a sort of a fool-proof feature. It's pretty much the like the absence of non-declared variables.You can define an abstract class with...
Question 9 Apr 2013   license: CPOL
Dear Friends,I was reading an article on whether there could be non abstract methods in abstract classes or not.Then while reading a question pops up into my mind that is vice-verse can also be true i.e., If some one is willing to make a abstract method in a non abstract class then will...
Article 8 Apr 2013   license: CPOL
This article is intended for who have at least basic idea about Object oriented programming.
Question 1 Apr 2013   license: CPOL
now i have one string named input string in that i have characters like a,b,c,d .....upto z now i want to write function for another string like output string that have first 10 characters of that input string then space and then another 10 characters of this input string now for...
Answer 1 Apr 2013   license: CPOL
If this is C# code then-----------------------------------------Correct code------------------private string Getstring(string inStr){ string input=inStr; string output =input.substring(0,10); return output;}here is your mistake in boldfunction Getstring(string...
Question 29 Mar 2013   license: CPOL
Hi AllI need asp .net chat application with best oops,linq coding.Is there any useful download links.Thanks and regardsFroxy
Answer 21 Mar 2013   license: CPOL
OK, interviewers can be idiots. Well too often, it sounds like. It does not mean that we should explain every case of idiocy. As to this particular case, I'm not quite sure the question was idiotic. Perhaps they told you a bit more. Perhaps you were expected to ask for clarification; and they...
Question 21 Mar 2013   license: CPOL
Hi All, in interview I faced this question,this is very strange to me,because really I don't know how this question is related to oops interview question.can anybody explain this.
Answer 23 Feb 2013   license: CPOL
Hi!! Good question..>Abstract ClassesAn abstract class is the one that is not used to create objects. An abstract class is designed to act as a base class (to be inherited by other classes). Abstract class is a design concept in program development and provides a base upon which other...
Answer 23 Feb 2013   license: CPOL
Do you mean what is the mechanism for implementing polymorphism? One possible mechanism is late binding, see "Polymorphism in object-oriented programming" at Wikipedia[^].
Question 22 Feb 2013   license: CPOL
What is the background mechanism to call an abstract class method in other class(inheritance) without making the the object of abstract class?[Edit]Shouting removed[/Edit]
Question 21 Feb 2013   license: CPOL
Hi,I need real world practical example for PHP with OOPs.
Answer 13 Feb 2013   license: CPOL
It's pretty simple to understand why it gives the error: You are trying to use code outside any method.If you move the code into a method, then it will work, but the only thing you can put outside a method is a declaration. If you move both lines into a method body, then you can do it - as you...
Question 13 Feb 2013   license: CPOL
Code Sample:class MyNamespace{ class MyClass { String _MyVariable; public String MyVariable { get { return _MyVariable; } set { _MyVariable = value; } } } //This one valid void MyMethod() { ...
Answer 10 Feb 2013   license: CPOL
From your code sample, it is apparent that you can use this list through the instance of A, because you made it an instance field of this class and it is public. In this respect, the problem solved.Both things are no good: 1) it's bad to make a field non-private; you should better use the...
Question 10 Feb 2013   license: CPOL
Hi,I have a member list in my silverlight page class, I get it populated in the from the database in the completed event. Now I have created another class and wants to access this list from there. I have tried making it a property but it returns null.Can anyone please...
Answer 8 Feb 2013   license: CPOL
You need to make your list a DependencyProperty[^] most likely. I have only knowledge of WPF, not Silverlight. But I can tell you that an ObservableCollection[^] should work for objects. For ObservableCollection, it's more difficult because string objects doesn't implement...
Answer 8 Feb 2013   license: CPOL
Yes they are useful. UML is basic for OOP developers. You have to have a knowledge for how classes are interact, associates, navigate between each other. UML diagram symbols help to clarify these communications.
Question 8 Feb 2013   license: CPOL
I was rather surprised when several companies I've been interviewing with, asked me to solve a modelling question as a part of the initial written test. The questions were vague and open ended and ranged from designing a restaurant reservation system to designing a library for borrowing and...
Answer 2 Feb 2013   license: CPOL
Difference between object and instance[^]difference between instance & object[^]
Answer 2 Feb 2013   license: CPOL
Just a naming thing.Instances of a class are created and these instances are the objects that will be worked with.
Question 2 Feb 2013   license: CPOL
Is there any difference between Object and Instance of a class???RegardsGaurav Bansal[Email-deleted]
Answer 2 Feb 2013   license: CPOL
both are same.Instance of class is object of class.
Answer 17 Jan 2013   license: CPOL
It is absolutely impossible to answer without the context of this code. Moreover, this question makes no sense at all.And this is a very poor method of learning something. It's much better to read a simple manual, do the exercises, and ask question only when you stuck.Overriding is a...
Question 17 Jan 2013   license: CPOL
if we have two functions likeint fun1(int,int)double fun1(int,int)this is ex of what overloading or overidding?
Answer 10 Dec 2012   license: CPOL
Yes you can. namespace Private_Classes{ class Program { static void Main(string[] args) { } private class Test { public Test() { } public Test(string Value) { ...
Question 10 Dec 2012   license: CPOL
can we have two overloaded private constructors in a class?
Answer 6 Dec 2012   license: CPOL
There are so many errors (e), cases of bad design (d), and probable semantic errors (s) in addition to the initialization that I decided to make a separate posting:(d) class hexa: member variables should almost always be private, not protected! Only methods should be protected or...
Answer 4 Dec 2012   license: CPOL
The error messages from the compiler tells you that you are using the drawpoly function incorrectly. The second argument should a reference to a one dimensional array of points.http://www.programmingsimplified.com/c/graphics.h[^]Alan/
Answer 4 Dec 2012   license: CPOL
The function drawpoly takes an int and a int*, not an int and then loads of ints;So instead of;drawpoly(7,pts[0][0],pts[0][1],pts[1][0],pts[1][1],pts[2][0],pts[2][1],pts[3][0],pts[3][1],pts[4][0],pts[4][1],pts[5][0],pts[5][1],pts[6][0],pts[6][1],pts[0][0],pts[0][1]);I think you...
Question 4 Dec 2012   license: CPOL
i am using turbo c complier for the given code :-#include#include#includeclass hexa{ private:int x,y,pts[12][12],s;float h,r; public:void set(){cout>x>>y;cout
Answer 4 Dec 2012   license: CPOL
class yellow:public hexa{ int a4=(x1=x=85,y1=y=105),b1=(x2,y2),c1=(x3,y3),d1=(x4,y4),e1=(x5,y5),f1=(x6,y6); int a5=(x1=x=85,y1=y=-15),b1=(x2,y2),c1=(x3,y3),d1=(x4,y4),e1=(x5,y5),f1=(x6,y6); int ptr4[14]={a4,b4,c4,e4,f4,a4}; int ptr5[14]={a5,b5,c5,e5,f5,a5};None of these...
Question 3 Dec 2012   license: CPOL
The Groupe Spécial Mobile (GSM) was created in 1982 to provide a standard for a mobile telephonesystem. The first GSM network was launched in 1991 by Radiolinja in Finland with joint technicalinfrastructure maintenance from Ericsson. Today, GSM is the most popular standard for mobilephones...
Answer 3 Dec 2012   license: CPOL
This is an instance of the four colours theorem, isn't it ?Start here: http://en.wikipedia.org/wiki/Graph_coloring[^]
Answer 26 Nov 2012   license: CPOL
If you have conceptual idea of what abstract class is then following links might be helpful to you for achieving the same.http://msdn.microsoft.com/en-us/library/sf985hc5.aspx[^]http://www.dotnetperls.com/abstract[^]All about abstract classes.[^]
Answer 26 Nov 2012   license: CPOL
Well we will start it's theory and then go the labs ;)One the most fav question of my english teacher was, 'write the abstraction of the story'. We have read the story and then have to write entire stuff in 2-3 lines. So abtraction is 'taking out the important stuff from a huge class and...
Answer 26 Nov 2012   license: CPOL
Abstraction is a mental process (see Wikipedia[^]) , it has (almost) nothing to do with abstract class (that is a C# language entity).Abstractions are very useful in OOP (like in many other areas of knowledge), you are encouraged to read a good book on OOP.
Question 26 Nov 2012   license: CPOL
Can anyone describe that how to achieve abstraction in c#.net. I know what is abstract class and all conceptual knowledge..... but dont know, where i am using Abstraction...???
Answer 25 Nov 2012   license: CPOL
Since the videos are for sale, and subject to copyright, that would be illegal, and immoral.You will not receive such help here, and I would strongly suggest that you do not ask again.
Answer 23 Nov 2012   license: CPOL
The answers in brief:1) Most of them.2) Because without it we can't override methods.3) Can can provide working methods and properties.4) Personally, with very long and complex function names...And I do realize that these answers aren't a lot of help to you, unless you already...
Question 23 Nov 2012   license: CPOL
i need a project which has used oops concept.I was asked questions in interview:1.where you have used abstraction in your project.2.why we require runtime polymorphism.3.what we can do with abstract class that we can't do with interfaces.4. Without oops concept ,how we were working on...
Question 7 Nov 2012   license: CPOL
Hi,The code which runs directly under the control of code manager in CLR is called managed code. So the Garbage collector will take care of memory deallocation,providing security etc.Then what about the unmanaged code like if pointers are used using the keyword Unsafe within the code....
Answer 12 Oct 2012   license: CPOL
You may declare instances of that class.class{public: int x;} xaaa1, xbbb1, xccc1;class{public: int y;} xaaa2, xbbb2, xccc2;int main(){ xaaa1.x = 1; xaaa2.y = 2; xbbb2.y = 3; cout
Answer 12 Oct 2012   license: CPOL
Anonymous classes are allowed (see, for instance, MSDN[^]). I think they are not a loophole.
Question 12 Oct 2012   license: CPOL
in C++ , you can declare a class without name . like class {};Above declarations is perfectlly legal in C++. It will compile without any error.My question is , Though it is allowed, is ther any a specific use of this ?or it is a loophole ??
Answer 7 Oct 2012   license: CPOL
Hi,There are so many examples available on internet, All you need to relate with the real life scenario. But here are some of the example you can refer.Interface example[^]All about abstract classes.[^]Hope it works for you,Thanks.
Question 7 Oct 2012   license: CPOL
I need a real time example of interface and abstract class. I don't need the code but a scenario where we use the interface, abstract class. Like somebody is working on an application which calculates the auto insurance premium and using interface and abstract class at some point.Thanks

Page 1 of 6
1 2 3 4 5 6


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid