Results 1 to 5 of 5

Thread: Inheritance in an object oriented language

  1. #1
    Join Date
    Dec 2010
    Posts
    59

    Inheritance in an object oriented language

    I am an IT student , I am in my first year of of my degree course. I am looking forward to learn programming languages as I have already learned C language , but according to my teachers and my seniors it is a procedure language which is soon going to be removed from the curriculum . The languages which I will learn will be object oriented. However it has some distinct features than that of C language. There are a lot of features such as Encapsulation , data abstraction , Inheritance and Polymorphism . I will appreciate if you can explain briefly on the the inheritance . I expect professors and senior level students to comment n this topic.
    Last edited by Satchel; 17-12-2010 at 04:27 AM.

  2. #2
    Join Date
    May 2009
    Posts
    527

    Re: Inheritance in an object oriented language

    There are a lot of advance features in languages like VB , C # and JAVA over C language. Apart from the features you mentioned they provide features such as flexibility in the code and res usability of the code which is generated automatically . Like c language these object oriented approach does not follow any particular procedure like it is being done on the C language.

  3. #3
    Join Date
    May 2009
    Posts
    511

    Re: Inheritance in an object oriented language

    The object oriented language supports a lot of features than just the inheritance than the object oriented language. They provide you features such as reusablity of code and flexibility in coding. This features was available in languages such as VB, C # and JAVA . The inheritance you are talking about is the feature in which you can gain the feature of some other class in your class.

  4. #4
    Join Date
    May 2009
    Posts
    543

    Re: Inheritance in an object oriented language

    I can explain this concept in depth , you will be well familiar with the concept of objects and classes since you are in the first year of your graduation course. If your program consists of more than one class and you want to use the the data members and member functions of some other class and want to implement in your code then inheritance lets you achieve this goal. But the class from which you are importing the features must be public ally accessible to the other classes.

  5. #5
    Join Date
    May 2009
    Posts
    529

    Re: Inheritance in an object oriented language

    This can be accomplished only when there is a parent child relationship between the classes . Inheritance is something when a new class is created from an existing class . The class which is taking access of the data members and functions from the other class is the child class and the access provider is the parent class . The parent class is also called as base class and the child class s also called as Derived class.

Similar Threads

  1. Object oriented programming with java
    By cloud101 in forum Software Development
    Replies: 2
    Last Post: 22-02-2012, 01:11 AM
  2. Replies: 3
    Last Post: 08-01-2011, 06:20 AM
  3. Object oriented functions in Visual Basic 6.0
    By fLUTE in forum Software Development
    Replies: 4
    Last Post: 27-12-2010, 05:59 AM
  4. Replies: 7
    Last Post: 08-12-2010, 02:20 AM
  5. Object Based Language VS Object Oriented Language
    By Karsenman in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 01:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,983,533.77712 seconds with 17 queries