What is the point of an abstract class?

ok lets say there was a subclass that inhereited another subclass...like a class Person, a class Student, and a class GraduateStudent; why would i want to make the class person abstract and have a abstract void display(); in it if i want to override that method in the subclasses lower on the inheritance tree? Wouldn't it do the same thing to just make a normal class Person and just not have a void display...and the other 2 over ride it anyways so i seriously dont see what the point of abstract classes are

ok lets say there was a subclass that inhereited
another subclass...like a class Person, a class
Student, and a class GraduateStudent; why would i
want to make the class person abstract and have a
abstract void display(); Because all Persons are required to be able to display(), but there's no reasonable common default behavior for display() that you can put in the base class.
Abstract methods say, "Everything of this type must be able to do this, but it's up to the individual implementations to figure out *how* to do it."
in it if i want to override
that method in the subclasses lower on the
inheritance tree? Wouldn't it do the same thing to
just make a normal class Person and just not have a
void display..Then you couldn't do this: Person p = getAPersonThatMightBeAStudentOrWhateverWeDoNotKnowWhat();
p.display();or this:
void doPersonStuff(Person p) {
  p.display();
Person s1 = new Student();
Student s2 = new Student();
Person t1 = new Teacher();
Teacher t2 = new Teacher();
doPersonStuff(s1);
doPersonStuff(s2);
doPersonStuff(t1);
doPersonStuf(t2);
.and the other 2 over ride it anyways
so i seriously dont see what the point of abstract
classes areI hope you do now.
Message was edited by:
jverd

Similar Messages

  • What is the diff b/w Abstract class and an interface ?

    Hey
    I am always confused as with this issue : diff b/w Abstract class and an interface ?
    Which is more powerful in what situation.
    Regards
    Vinay

    Hi, Don't worry I am teach you
    Abstract class and Interface
    An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.
    Edited by SASIKUMARA
    SIT INNOVATIONS- Chennai
    Message was edited by:
    sasikumara
    Message was edited by:
    sasikumara

  • What is the point of developing different classes ?

    my question is why to develop many classes and import between them while we can produce objects as much as we can in one class ?
    Message was edited by:
    scrolldown

    the monolithic - everything in one place - application is a nightmare to maintain, basically. imagine having to work out and trace a million lines of code, where they all lead and what they do, all in one source file. a nightmare. modularising software allows us to work on small pieces of the problem at once, and, done properly, to change individual modules without affecting others. it's not limited to software, either. look inside your PC. there isn't just one single chip that processes instructions, accesses memory, accesses drives, manipulates the screen, outputs sound and communicates over the network. there are modules that specialize in one of those things. imagine if everything was done by one chip, and then the manufacturer realises they made a mistake in the memory part of the chip. you'd have to replace the whole thing. now imagine a piece of unmodular software, and there's a bug in one small place. you now have to replace the entire thing
    it might not seem so at the moment, but when you come to write larger applications, you'll see the benefits of separation

  • What is the point of [Bindable("selectionChange")] in parts of the spark datagrid class?

    I dont understand the point of this code in the spark datagrid class:
    what is the point of this:
        [Bindable("selectionChange")]
         [Bindable("valueCommit")]
         [Inspectable(category="General", defaultValue="null")]
    in
        //  selectedItem
        [Bindable("selectionChange")]
        [Bindable("valueCommit")]
        [Inspectable(category="General", defaultValue="null")]
         *  @copy spark.components.Grid#selectedItem
         *  @default null
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 2.5
         *  @productversion Flex 4.5
        public function get selectedItem():Object
            if (grid)
                return grid.selectedItem;
            return (dataProvider && (selectedIndex > 0)) ?
                dataProvider.getItemAt(selectedIndex) : undefined;
         *  @private
        public function set selectedItem(value:Object):void
            if (grid)
                grid.selectedItem = value;
            else
                var f:Function = function(g:Grid):void
                    g.selectedItem = value;
                deferredGridOperations.push(f);

    Anything that is binding to selectedItem will go get the value again when either of those events fires.

  • JWSDP and J2EE Integration: Doesn't work. What's the point?

    My problems involve the integration of JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    It looks like a long one, but it�s really not that bad. All comments are appreciated.
    I�ve numbered each line-paragraph-section for easy reference later.
    (1) My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website that uses servlets, JavaServer Pages (JSP), and JDBC.
    (2) I�ve got four Pentium III computers:
    1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
    2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
    3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
    4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
    (3) On MyWebServer I installed the following:
    Java 2 Standard Edition (J2SE)
    Java 2 Enterprise Edition (J2EE)
    Java Web Services Developer Pack (JWSDP)
    The JWSDP tutorial
    Apache HTTP Server
    (4) The files I downloaded and installed are as follows:
    j2sdk-1_4_0-rc-win.exe
    j2sdkee-1_3_1-win.exe
    jwsdp-1_0-ea1-win.exe
    jwsdp-1_0-ea1_01-tutorial.zip
    apache_1.3.23-win32-x86-no_src.exe
    (5) After installing these products, I set the environment variables as follows:
    JAVA_HOME = c:\j2se
    J2EE_HOME = c:\j2ee
    JWSDP_HOME = c:\jwsdp
    Path = c:\j2se\bin;c:\j2ee\bin;c:\jwsdp\bin; [and other previous statements]
    (6) I checked to see that Apache is running as a service. It is.
    On MyWebServer I start Tomcat and J2EE. Both start properly and are operating simultaneously.
    (7) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1
    This displays the page c:\ApacheHTTP\apache\htdocs\index.html.en (The Apache default server installation page.)
    (8) I then enter this address in IE:
    http://10.10.1.1:8080
    This displays the page c:\jwsdp\webapps\root\index.html (The default JWSDP page).
    (9) I then enter this address in IE:
    http://10.10.1.1:8000
    This displays the page c:\j2ee\public_html\index.html (The J2EE 1.3 Default Home Page).
    (10) So far so good. Now I want to test JWSDP as a container for JSP pages.
    (11) I use ant to build the converter app found in the tutorial examples (in folder c:\jwsdp\�\tutorial\examples\gs). I then deploy the converter app to the c:\jwsdp\webapps\gs folder.
    (12) From MyClientPC I open Internet Explorer and in the address box I type:
    http://10.10.1.1:8080/gs
    The converter app works perfectly.
    (13) To eliminate the need to enter the port number, I create a link from the Apache default server installation page to the converter app. From MyClientPC and enter this address into IE:
    http://10.10.1.1
    I then click on the link to the converter app and it works perfectly.
    (14) Question: Is this the best way to display JSP pages without having to enter the port number?
    (15) Now it�s time to integrate JWSDP and J2EE as described in these two documents:
    http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
    http://java.sun.com/j2ee/documentation/windows_guide.html
    (16) After I complete this integration I cannot start both Tomcat and J2EE at the same time. This makes sense because they both share port 8080.
    I start Tomcat.
    (17) From MyClientPC and use Internet Explorer to test the various relevant addresses. Everything works the same as it did before except this one:
    http://10.10.1.1:8000
    The page cannot be displayed. The J2EE default home page is not displayed, which makes sense because the J2EE port is no longer 8000; it has been changed to 8080.
    (18) Now I shutdown Tomcat and start J2EE.
    From MyClientPC and use Internet Explorer to test the various relevant addresses:
    (19) http://10.10.1.1:8080
    Displays the JWSDP default home page.
    (20) http://10.10.1.1:8080/gs
    The page cannot be displayed. The converter app no longer works.
    (21) From MyWebServer and use Internet Explorer to test localhost:
    http://localhost:8080
    This displays the J2EE default home page.
    (22) Question: Why does localhost give me a different page than the IP address?
    (23) Question: What was the point of integrating JWSDP and J2EE?
    (24) I want to get the converter app working, so I create a .war file and attempt to add it to the J2EE deploytool (see the two integration documents listed above at section 15.) I create the .war file following the instructions in the JWSDP tutorial:
    http://java.sun.com/webservices/docs/ea1/tutorial/doc/WebApp3.html#64606
    (25) I change to the c:\jwsdp\�\tutorial\examples\gs\build folder.
    I then type:
    jar cvf converter.war .
    A .war file is created.
    (26) I open the deploytool: File, New, Application, and I name it �converter�.
    I attempt to add the .war file: File, Add to Application, Web WAR.
    (27) When I attempt to add the converter.war file I get this error:
    �converter.war does not appear to be a valid web JAR.�
    I tried a few different attempts, all with the same result. I�m stuck.
    (28) I ask again, What was the point of integrating JWSDP and J2EE?
    (29) If this is the preferred configuration, how do I display my JSP pages like the converter app?
    Please help!!!

    The JWSDP tutorial says to be in the �build� folder of the example when issuing the jar command to create the .war file. The build folder is created when I run the �ant build� command.
    Attempt 1 from the command prompt in folder c:\jwsdp\tutorial\examples\gs\build>
    I typed this command:
    jar cvf c:\jaxmservices\converter.war .
    In this case I directed the .war file to be placed in a different folder as you suggested. Here�s the output:
    added manifest
    adding: index.jsp(in = 921) (out= 525)(deflated 42%)
    adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)
    adding: WEB-INF/classes/Converter.class(in = 582) (out= 358)(deflated 38%)
    Didn�t work. Same error as before.
    Attempt 2 from the same folder:
    I typed this command as you suggested (I tried it with and without the final dot):
    jar tvf converter.war
    Here is the output:
    java.io.FileNotFoundException: converter.war (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at sun.tools.jar.Main.run(Main.java:185)
    at sun.tools.jar.Main.main(Main.java:904)
    I tried a few other variations on these attempts with no luck. I�m stuck.
    I�m attempting to create a .war file out of two files: index.jsp and converter.class.
    Now that I�ve integrated JWSDP and J2EE, is there some other way that I can run the converter app instead of a .war file and the deploytool? In other words, if I go back to using ant to build and deploy converter, where would I deploy it so that it will work with J2EE?
    By the way, it doesn�t have to be converter. I�d be happy if I could get any JSP page to work in J2EE after the integration.
    Forever grateful,
    Logan

  • Declaring constructor method public or private.  What's the point?

    My book declares the constructor method public. I tried declaring it private, and without any modifier out of curiousity. It runs exactly the same. What's the point of doing so?
    public class test
         public static void main( String[] args )
              test fun = new test();
              test fun2 = new test(2);     
              System.out.println( fun );
    //          System.out.println( test.toString() );
         public String toString()
              return "This is the toString";
         test()
              System.out.println( "This is the constructor method" );
         test( int x )
              System.out.println( "This is the constructor method: " +x );
    }

    yougene wrote:
    I'm new to OOP so maybe I'm not completely grasping the terminology. But this program works just fine with my class.
    public class test2
         public static void main( String[] args )
              test foo = new test();
    }It gives me the following output
    ----jGRASP exec: java test2
    This is the constructor method
    ----jGRASP: operation complete.The constructor method is executing from an outside class. I tried this with and without the private modifier on the constructor. Same result.Try compiling this.
    public class C1 {
      private C1() {
        System.out.println("C1 c'tor");
    public class C2 {
      public void foo() {
        C1 c1 = new C1();
    }

  • What is the use of an abstact class?

    Hi friends,
    why we need to the abstract class...in which scenario????????
    Thanks

    ghostbust555 wrote:
    THe abstract class is very useful because you can force people who extend a class to override a method.That does not do anything to explain the use of an abstract class.
    For example when I was creating JavaPoint (sourceforge.net/projects/javapoint) I created an object called GraphicObject. It cotained code for different things related to drawing images and shapes on the screen. But the method to convert each GraphicObject to XML for saving was made abstract because each different type of GraphicObject (CircleGraphicObject, SquareGraphicObject ...) needed different code to turn it into XML. Thats just one example there are many many uses for it though.That almost kinda sorta explains the user of abstract classes.
    @OP: The use of an abstract class is when you 1) want to define a type--that is, what some particular type can do, 2) want to allow different, independent implementations of that type, and 3) want to provide a reasonable default implementation for some of that type's operations.

  • What is the Point of Active Directory/LDAP Specification?

    My college threw an interesting curve ball today and I couldn't give him a good enough answer. The question was simple 'What is the point of active directory'. Now I don't have a lot of exposure to active directory, but I thought I could easily answer. My argument was; If you have a group of objects its easy to look up attributes for those objects using active directory. For example, if you have a group in AD and you want to verify the users of that group you simply look up the member attribute of that group. However he argued, rightly so, that you can do that with a table in a database, why do that in AD. I couldn't give him a good enough answer and now I'm curious. Given the above example, why use AD over a database?
    To me AD is a way to manage a set of resources, whatever they are, by mapping them to objects that have however many attributes. But we could do that in a database, whats the point of AD? Why do you use AD?

    I come from a primarily database centric background. Just like life experience, it casts a certain perspective on problems. Database people solve things with databases. Directory people solve things with directories. Everyone has their perspective. It's not really about who's right and who's wrong. It's about perspective because people are most likely to go with what's familiar when given a problem. It's easy to have this conversation in a educational environment but when you're on the job it's about turf, schedules and careers. My latest job (in which this debate comes up a lot) has been about directories which has been a very enlightening experience because I've been given a gift of perspective. I can put on the directory hat and look at it from another angle.
    To get back to your professor's question. The answer is easy. LDAP (AD or other) is an application above a database. It has a data store behind it, in most cases we can just assume this is a database. So, in short, it's apples to oranges. But if we insist on comparing which makes the better juice, let's look at how we'd make a database like a directory. We could create a data model with an attributes table, an entries table and so on. We can deconstruct what LDAP data structures really are and implement each type as a table with FK/PK relationships and so on. It's sure to work because there are already so many products on the market doing this very thing. But think about the effort now. How are you going to add new users? A front-end? Stored procedures? Scripts? How are you going to keep someone from seeing things they shouldn't? You have to insert an object into all the right tables to ensure that your data is consistent and valid. In a pure database, you're trying to create ACLs on database rows. Now you're writing a full featured application with a lot of complexity. Given enough directory features, the database isn't going to be able to do everything without an external application.
    What is the point of LDAP? It's got hierarchy, ACLs, group of unique names functionality and things that are a layer of abstraction above the data store. I love databases but if you start designing out a directory server from scratch you'll realize it's far beyond comparing a user.ldif to a row in a user table. They are similar in appearance but different types of software.
    Edited by: milkfilk on Dec 16, 2008 11:48 AM
    Edited by: milkfilk on Dec 16, 2008 11:54 AM

  • What is the point of Apple TV anyway?

    I must be missing something but I don't see the point of the Apple TV:
    If one has to convert all video, presentation and other material to run on Apple TV. What is the point?
    All these converted videos, etc. don't only take up time to convert but take up unnecessary disk space too. What is the point?
    Surely Apple will make future versions of its DVD Player, iLife, and iWorks, especially Keynote, compatible with Apple TV so that one can stream DVD's, Keynote presentations, etc. directly to a TV via Apple TV without having to "rip" ones DVD's and convert them or convert all ones presentations into QuickTime. Otherwise, what is the point?
    As for movies on iTunes tell me what proportion of the population buy their movies? Most movies are only worth watching once, if that, so most of us rent them for far less than the cost of buying. You can't rent movies for Apple TV. So, what is the point?
    For teaching situations it would also make sense for Apple to make it possible to "stream" the Mac desktop, including running applications to a large screen TV to allow it to be used as teaching tool in lecture theatres, classrooms, etc. I say it again, what is the point?

    If one has to convert all video, presentation and
    other material to run on Apple TV. What is the
    point?
    One doesn't have to convert all video. A great deal of compatible MPEG-4 formatted content (including MPEG part 10, a.k.a. H.264) is available from diverse sources, including Apple's iTunes Music Store. One interesting source you may not be aware of is video podcasts. Just as audio podcasts have become popular as a distribution format for audio content, so too now is the video version. An easy way to sample what is available is through the "Apple TV Showcase," accessible from the Podcast section of iTunes Music Store.
    All these converted videos, etc. don't only take up
    time to convert but take up unnecessary disk space
    too. What is the point?
    Nothing says you have to keep multiple versions of this content on your hard drive(s). In fact, H.264 is the current state of the art in video compression, offering higher quality vs. file size than any other codec. Most people find that even for HD content up to 720p24, Apple TV's 5 Mbps limit produces either no visible compromise or so little that the file space saved is well worth the tradeoff. Moreover, the number of standard DVD's (which use MPEG-2 compression) that contain content that can't be re-compressed in H.264 at <5 Mbps with no losses at all are few & far between.
    <div class="jive-quote">Surely Apple will make future versions of its DVD
    Player, iLife, and iWorks, especially Keynote,
    compatible with Apple TV so that one can stream
    DVD's, Keynote presentations, etc. directly to a TV
    via Apple TV without having to "rip" ones DVD's and
    convert them or convert all ones presentations into
    QuickTime. Otherwise, what is the point?
    Only Apple can say what Apple will do, but remember that there are a number of issues involved here, not the least of which is DRM & the legality of providing software that defeats protection schemes, that may prevent it from doing what consumers would like it to do.
    As for movies on iTunes tell me what proportion of
    the population buy their movies? Most movies are only
    worth watching once, if that, so most of us rent them
    for far less than the cost of buying. You can't rent
    movies for Apple TV. So, what is the point?
    Not that long ago, most industry pundits thought the consumer market for buying commercial releases of movies or TV shows was insignificant -- that for instance consumers would prefer to see movies in theaters & have no interest in buying them afterwards, or that they would only be interested in rentals. I don't know if you have noticed, but they were wrong ... to the tune of billions of dollars in revenue per year that often exceed the revenue from theatrical releases.
    Some of these same pundits more recently predicted that selling TV shows by the episode, particularly at less than HD resolution, would have no marketing potential -- after all, why buy something you could watch or record for free? Once again, they were wrong. It turns out that some people just like collecting episodes, others are eager to buy a missed episode of a favored show, still others are willing to pay for selected cable content but not for cable TV, & so on.
    At the same time, bricks & mortar rental chains like Blockbuster (the world's largest) have seen profits plummet, prompting ever greater reliance on other products, including in-store sales & their own online services, still oriented toward rentals. Other retail giants like Wal-Mart have tried online rental services, too. So far, all these rental-oriented services have yet to exceed "also ran" status compared to Apple's success.
    Put simply, the point is renting is becoming less popular & ownership --particularly when it is comparatively easy & cheap -- more popular.
    For teaching situations it would also make sense for
    Apple to make it possible to "stream" the Mac
    desktop, including running applications to a large
    screen TV to allow it to be used as teaching tool in
    lecture theatres, classrooms, etc. I say it again,
    what is the point?
    The point here is that products that do this already exist, but the market for them is very limited compared to the one the much cheaper Apple TV targets.
    Put another way, what "makes sense" to consumers (the fabled $100 laptop, for example) doesn't necessarily mean it makes sense in commercial terms, no matter how badly people want it or how well it would sell.
    iMac G5/2.0 GHz 17" ALS (Rev B)   Mac OS X (10.4.9)   1.5 GB, Kensington Trackball

  • What is the point of this website?

    What is the point of this website? Questions asked but not answered. (I don't class the option to contact someone, at a certain time, in India, as a reasonable solution to what is a straightforward question). Has Adobe not got anyone qualified to answer my question? Is Elements 13 flawed? I've resorted to Elements 9 which works fine. If anyone asks me my opinion of Elements 13 I'll tell them "don't waste your money"!

    I would imagine it is this Photomerge problem:
    https://forums.adobe.com/thread/1654345?sr=stream <https://forums.adobe.com/thread/1654345?sr=stream&ru=3705263> &ru=3705263

  • I am extremely upset. I purchased my iPad in SA and I am traveling in Greece. When I want to make use of the free apps, I get a message that the app is not available in the SA store. What is the point of having an iPad if you cannot use it worldwide?

    I am extremely upset. I purchased my iPad in SA and now I am in Greece. I cannot download free apps as I get a message that the apps are not available in the SA store and only in US stores. When I change to the US store the same thing happens. What is the point of having an iPad if I cannot use it worldwide??? I feel that I wasted my money purchasing it as I specifically purchased it to use when I travel. How can I get access to all the available apps and why are they restricted.

    You can use your iPad worldwide. However, each AppleID is tied to
    a specific country's store. To use the AppStore in any country, you
    must be in that country and have a credit/debit card issued by a financial
    institution in that country with a verified billing address in that country.
    It is the developer's choice which AppStores he makes his app available
    from, and some countries prohibit certain apps.
    To make a purchase from the US store (including downloading a free app
    available in the US store), you must be in the US and have card issued
    in the US with verified billing address in the US.
    You can use your purchases from the SA store worldwide, but you
    cannot make purchases in other than the SA store unless you meet
    the aforesaid conditions.

  • What is the point of the download window if you use stacks?

    Greetings,
    One of the most annoying things about the download window was the fact that the window always hung around after completing dowloads in Tiger when using safari. To me, that was just a time waster of always pressing Apple+W to close that window.
    When Leopard was released, I was excited to realize that one function of the download stack was to recevie downloads from safari after completed. However, after completion, the download window still sticks around and I still have to close it... then navigate to my stack of downloads to mount the image. What is the point of the download window is I use stacks now? Why can't the window disappear after completion?
    //Cheers

    Aaargh!! Me too - it's so annoying! Firefox has a downloads window as well - I just don't see the point of it. I didn't like it in Tiger either.
    As a way to see the progress of downloads, it's fine, but it should at least close when all the downloads are finished, and completed downloads should not display.
    Ideally it should look & work exactly like the Copy window in Finder - the one that comes up when you are copying or moving a large file or number of files from one folder to another.
    Is there a hack that will make it work like that?

  • My wifes iphone was too full to record a video so I upgraded her cloud storage to 20g and did mine at same time. Cloud is showing 15g free storage butshe still cannot take any mor photos as "not enough memory" What is the point of paying for the extr

    My wifes iphone was too full to record a video so I upgraded her cloud storage to 20g and did mine at same time. Cloud is showing 15g free storage butshe still cannot take any mor photos as "not enough memory" What is the point of paying for the extr

    Hello Pushtheriver,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning iCloud storage issues:
    Get help using iCloud storage
    This may also help:
    Understanding iOS device capacity
    You can sync and download many different types of content on your device. Some types of content (such as music and videos) typically take more space than others (such as notes and books). The amount of space taken by an app depends on the app's purpose; complex or graphically intense apps usually take more space than simpler apps.
    If your device is near its capacity, you can remove some of the less used content to make room for more.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • What's the point of warranty?

    I am a student coming from Hong Kong  to London for postgraduate study. Before I left Hong Kong, I decided to buy a netbook for my lecturers in the UK. Lenovo s10-2 was chosen because the version available in HK comes with 6 cell battery with international warranty and Lenovo Protection Service (against accidental damage).
    This is the first Lenovo machine for me. All was well and I was starting to appreciate Lenovo. Suddenly, the LED screen started to flick with white lines moving across the it, just two weeks after I bought it from Hong Kong.
    Yesterday, I called the UK support line who initially suggested replacement (because the purchase is last than 30-day old). However, when the agent found out that I bought the machine in Hong Kong, he said I could only get it repairs. Fair enough.
    I packed the netbook this afternoon ready to ship it to the repair center. Being not sure about whether or not my proof of purchase was needed, I called the support line again. This time, the agent gave me a "friendly warning" or maybe a management of my expectations.
    I was told that Lenovo believes that there is a 99.5% chance that these type of problems are due to “internal damages" caused by users! I was also advised that sending the machine in for repairs risk myself getting into paying 230 pounds (pretty much the purchase cost) to get the LED screen fixed because it is likely to be not covered by warranty. On top of that, I would have to pay 65 pounds even if I want my netbook back after inspection without getting fixed because again, 99.5% chance that "damages by users" would be concluded!
    What's the point of warranty? Totally unacceptable. Any thoughts? Should I take the risk?
    I only got the machine just over two weeks ago and used for less than 10 times!

    seblee,
    This bears a bit of looking into to provide you the best answer.   Sometimes, the accidental damage policies are only valid in the home country, and I would like to check.  If that were to be the case, you would have replacement or repair options in HK, but standard warranty terms would likely apply in UK.
    Your situation sounds exceptional, and I'd like to look into this and see what can be done.
    Can your send me a private message with your contact information and the serial number from the bottom of the unit?
    Sorry that you are having this trouble.  Will see how we can help.
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • What is the point of Precision and Scale in Number Type?

    Version :11.2
    What is the point in having PRECISION and SCALE in number type? If you create the column with just NUMBER ie.without
    specifying precision or scale , you can enter numbers with any precision and scale.
    SQL> select * From v$version where rownum < 2;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    SQL> create table t1 (col1 number);
    Table created.
    SQL> insert into t1 values (223.9939394);
    1 row created.
    SQL> insert into t1 values (88.228384);
    1 row created.
    SQL> insert into t1 values (9.34);
    1 row created.
    SQL> insert into t1 values (000.00);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
          COL1
    223.993939
    88.228384
          9.34
             0Did you ever have a business scenario where a Numerical column should store values only with a fixed precision and scale ?

    Omega3 wrote:
    Version :11.2
    What is the point in having PRECISION and SCALE in number type? If you create the column with just NUMBER ie.without
    specifying precision or scale , you can enter numbers with any precision and scale.
    SQL> select * From v$version where rownum < 2;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    SQL> create table t1 (col1 number);
    Table created.
    SQL> insert into t1 values (223.9939394);
    1 row created.
    SQL> insert into t1 values (88.228384);
    1 row created.
    SQL> insert into t1 values (9.34);
    1 row created.
    SQL> insert into t1 values (000.00);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
    COL1
    223.993939
    88.228384
    9.34
    0Did you ever have a business scenario where a Numerical column should store values only with a fixed precision and scale ?Lots of business requirements for specific precisions and scales.
    A persons Age may required to be stored as whole numbers of no more than 3 digits.
    A sum of money may required to be stored with no more than 2 decimal places of accuracy e.g. GB Pounds and Pence or US Dollars and Cents
    A unit of length may required to be stored in metres with 2 decimal places for centimetres
    A shoe size may be required to be stored with one decimal place for half sizes
    etc.
    etc.
    Yes, you may just create all of them as generic NUMBER datatype, but creating them with precision and scale can provide additional information about the limitations expected for the values stored, especially for things like reporting tools that may use the specified precision and scale to determine how to display the values automatically (by default).
    If you start questioning "what's the point?" then you may as well say what's the point in having a NUMBER datatype when we can store numbers in a VARCHAR2 datatype? or what's the point in having a DATE datatype when we can stored dates as VARCHAR2 datatype? etc.
    No point in asking such a question because there's almost always a point to these things (and if there isn't they get deprecated in later versions).

Maybe you are looking for