what is single inheritance?

Answer Posted / jasbir singh

when a single class is being inherited by a class, it is
called single or simple inheritance.

example:

class a
{
public:
int x,y;
};
class b: public a //// example of simple inhieritence
{
public:
int z;
}

Is This Answer Correct ?    91 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.

1865


How do you use inheritance in unity?

807


What is the full form of oops?

917


What is polymorphism and example?

779


Which language is pure oop?

756


What is an advantage of polymorphism?

826


Can a destructor be called directly?

812


What is basic concept of oop?

903


What is difference between data abstraction and encapsulation?

843


What is coupling in oops?

827


Please send ford technologies placement paper 2 my mail id

1847


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3836


What is abstraction in oops?

795


What is encapsulation in ict?

816


Can destructor be overloaded?

802